Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: menace on March 09, 2005, 11:13:14 am
-
I have a gamelist I have generated in a .txt file What command can i use to get all the games on this list (and only them) to copy from a larger set? For example:
gamelist.txt:
chomper.zip
mschomper.zip
bigmonkey.zip
games folder:
chomper.zip
mschomper.zip
bigmonkey.zip
funnyjapanesegame.zip
blahblah.zip
bigguns.zip
so i want to copy only the files from the games folder that are listed in the gamelist.txt file into a new folder.
thanks
-
i dont believe there is a command. so you want to use the .txt file as a source for the files that you want copied? probably have to whip up a quick qbasic program to do that.
-
I've always used a spreadsheet to do things like this.
-
why not just use a File Manager or LAPLINK or FASTLYNX ?
-
I have a gamelist I have generated in a .txt file
-
You need a text editor that can record and run simple macros.
I use Crimson Editor for stuff like this. First load your gamelist and record a macro that adds COPY to the start of one line, then moves to the next line. Run the macro and every line will be changed to:
COPY chomper.zip
COPY mschomper.zip
COPY bigmonkey.zip etc.
Then do a Find & Replace, replacing .zip with .zip c:\myfolder\ so you end up with a file like this:
COPY chomper.zip c:\myfolder\
COPY mschomper.zip c:\myfolder\
COPY bigmonkey.zip c:\myfolder\ etc.
Save this text file in your games folder as ROMSORTER.BAT and run it. It should copy all the roms that were in your gamelist to C:\myfolder
-
Check this out.
http://www.ericphelps.com/batch/
haven't done this in a while. But should not be hard to figure out. And yes you can do this from a batch file
-
I have a gamelist I have generated in a .txt file
-
Here is the command:
FOR /f %%G IN (gamelist.txt) DO copy "FOLDER1\%%G" FOLDER2
Change FOLDER1 and FOLDER2 to your folder's names. I put quotes are FOLDER1\%%G just in case the folder name or a file from the list has spaces in it. Add quotes around FOLDER2 if necessary.
Mario
Genius!
-
But it still doesn't solve the parent ROM issue....
-
awesome--the list already has the parent/clone relationships sorted--thanks very much for this!