Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Simple dos command help needed  (Read 1702 times)

0 Members and 1 Guest are viewing this topic.

menace

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2565
  • Last login:November 08, 2024, 01:49:35 pm
Simple dos command help needed
« 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
« Last Edit: March 09, 2005, 11:17:41 am by menace »
its better to not post and be thought a fool, then to whip out your keyboard and remove all doubt...

GalaxyForce

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:January 30, 2006, 01:46:46 pm
  • I'm a llama!
Re: Simple dos command help needed
« Reply #1 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.

rosborn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 16
  • Last login:November 08, 2021, 04:49:42 pm
  • rosborn
    • MAME Play-Choice
Re: Simple dos command help needed
« Reply #2 on: March 09, 2005, 04:23:09 pm »
I've always used a spreadsheet to do things like this.
« Last Edit: March 09, 2005, 04:30:01 pm by rosborn »
--
rosborn

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4420
  • Last login:July 24, 2025, 06:20:12 pm
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: Simple dos command help needed
« Reply #3 on: March 09, 2005, 04:26:14 pm »
why not just use a File Manager or LAPLINK or FASTLYNX ?
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re: Simple dos command help needed
« Reply #4 on: March 09, 2005, 05:39:28 pm »
I have a gamelist I have generated in a .txt file
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

JoyMonkey

  • Voodoo Wiki Master . . .
  • Wiki Master
  • Trade Count: (+5)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2899
  • Last login:June 16, 2025, 09:16:27 pm
  • Candy is Dandy but Liquor is Quicker
    • JoyMonkey.com
Re: Simple dos command help needed
« Reply #5 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

lokki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 647
  • Last login:May 05, 2025, 06:18:51 pm
Re: Simple dos command help needed
« Reply #6 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

Mario

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 278
  • Last login:March 29, 2021, 08:55:12 pm
  • Mmmmm.....arcades!
    • Mario's Arcade Page
Re: Simple dos command help needed
« Reply #7 on: March 09, 2005, 11:27:41 pm »
I have a gamelist I have generated in a .txt file

JoyMonkey

  • Voodoo Wiki Master . . .
  • Wiki Master
  • Trade Count: (+5)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2899
  • Last login:June 16, 2025, 09:16:27 pm
  • Candy is Dandy but Liquor is Quicker
    • JoyMonkey.com
Re: Simple dos command help needed
« Reply #8 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!

Chris

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re: Simple dos command help needed
« Reply #9 on: March 10, 2005, 02:46:33 pm »
But it still doesn't solve the parent ROM issue....
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

menace

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2565
  • Last login:November 08, 2024, 01:49:35 pm
Re: Simple dos command help needed
« Reply #10 on: March 10, 2005, 09:41:58 pm »
awesome--the list already has the parent/clone relationships sorted--thanks very much for this!
its better to not post and be thought a fool, then to whip out your keyboard and remove all doubt...