Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: menace on March 09, 2005, 11:13:14 am

Title: Simple dos command help needed
Post 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
Title: Re: Simple dos command help needed
Post by: GalaxyForce on March 09, 2005, 11:28:09 am
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.
Title: Re: Simple dos command help needed
Post by: rosborn on March 09, 2005, 04:23:09 pm
I've always used a spreadsheet to do things like this.
Title: Re: Simple dos command help needed
Post by: Thenasty on March 09, 2005, 04:26:14 pm
why not just use a File Manager or LAPLINK or FASTLYNX ?
Title: Re: Simple dos command help needed
Post by: Buddabing on March 09, 2005, 05:39:28 pm
I have a gamelist I have generated in a .txt file
Title: Re: Simple dos command help needed
Post by: JoyMonkey on March 09, 2005, 06:23:41 pm
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
Title: Re: Simple dos command help needed
Post by: lokki on March 09, 2005, 10:36:35 pm
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
Title: Re: Simple dos command help needed
Post by: Mario on March 09, 2005, 11:27:41 pm
I have a gamelist I have generated in a .txt file
Title: Re: Simple dos command help needed
Post by: JoyMonkey on March 10, 2005, 07:03:05 am
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!
Title: Re: Simple dos command help needed
Post by: Chris on March 10, 2005, 02:46:33 pm
But it still doesn't solve the parent ROM issue....
Title: Re: Simple dos command help needed
Post by: menace on March 10, 2005, 09:41:58 pm
awesome--the list already has the parent/clone relationships sorted--thanks very much for this!