Iggy Posted December 15, 2014 Share Posted December 15, 2014 OK so if I created a folder with multiple text files within this folder and use the name of the game for filename: ie I make a folder with name Nintendo GameCube and inside the folder I create text files with name Super Mario Sunshine (USA).txt and so on, that your script won't make an array of game titles from the text file names to be used by $list? (Reason why I'm doing this way is to test before pointing to my real directories) Link to comment Share on other sites More sharing options...
derekablackburn Posted December 15, 2014 Share Posted December 15, 2014 OK so if I created a folder with multiple text files within this folder and use the name of the game for filename: ie I make a folder with name Nintendo GameCube and inside the folder I create text files with name Super Mario Sunshine (USA).txt and so on, that your script won't make an array of game titles from the text file names to be used by $list?(Reason why I'm doing this way is to test before pointing to my real directories) The script won't modify the directory it is looking at. I did take a look today though and it appears the way the release date is coming from the gamedb is throwing off the script. It will run better inside of ISE at least until I have a few minutes to rewrite it (I am at work presently). Link to comment Share on other sites More sharing options...
Iggy Posted December 15, 2014 Share Posted December 15, 2014 Cool thanks buddy.....I think this script will be very useful for pulling custom info besides what's found in the current database.xmls ie number of players or description etc....so I thank you for sharing Link to comment Share on other sites More sharing options...
dsnyd22 Posted December 16, 2014 Share Posted December 16, 2014 what are the game info *.ini* files that are hosted on the Emumovies FTP?? Link to comment Share on other sites More sharing options...
Iggy Posted December 16, 2014 Share Posted December 16, 2014 K i found the issue.....the line that has the foreach entry: Period before ForEach should be a pipe character: $list.ForEach......should be $list|ForEach Once i made this change...I was able to scrape the data successfully Link to comment Share on other sites More sharing options...
derekablackburn Posted December 18, 2014 Share Posted December 18, 2014 K i found the issue.....the line that has the foreach entry:Period before ForEach should be a pipe character: $list.ForEach......should be $list|ForEach Once i made this change...I was able to scrape the data successfully Glad to hear. Sorry I've been wrapped up in developing a c# application. Link to comment Share on other sites More sharing options...
Iggy Posted December 19, 2014 Share Posted December 19, 2014 No worries Bro.....hope all goes well with your C# app! Link to comment Share on other sites More sharing options...
derekablackburn Posted December 20, 2014 Share Posted December 20, 2014 Thanks! It's coming along Link to comment Share on other sites More sharing options...
Dogway Posted January 27, 2015 Share Posted January 27, 2015 Strange it doesn't work for me even with sjignacz fix. I get this and no output file: Microsoft Windows [Versión 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos. X:\HyperSpin\HyperLaunch\Data\Game Info\Nueva carpeta\arcade>powershel l.exe -ExecutionPolicy Unrestricted -File "X:\HyperSpin\HyperLaunch\Data\Game In fo\Nueva carpeta\arcade\GameInfo.ps1" No se puede convertir a NULL el tipo "System.DateTime". En X:\HyperSpin\HyperLaunch\Data\Game Info\Nueva carpeta\arcade\GameInfo.ps1: 34 Carácter: 12 + Released=$([datetime]$info.ReleaseDate) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: ( [], RuntimeException + FullyQualifiedErrorId : nullToObjectInvalidCast [] Publisher= Developer= Released= Systems= Genre= Players= Rating= Description= Even if I delete the conflicting Date line, I get no output. EDIT: Managed to make it work, but I had to remove the regex part for removing brackets. In any case I had them removed on my dummy files filenames. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.