Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: abispac on May 16, 2011, 07:37:30 pm

Title: Programers,help me create a installer batch file please.
Post by: abispac on May 16, 2011, 07:37:30 pm
Hello, thanks for reading, hope someone can help me, i wonder if someone can help me create an installer batchfile that can copy all of the content from one usb to a c: drive with no prompts or anything.Heres the situation, i have build more then 4 cabs for relatives with only few games, from time to time i get a request for a new game, so that means i have to travel to my relative house, mess with the cab , exit the shelled hyperspin,copy all of te content of my thumbdrive,shell hyperspin back again.So i thought maybe if i can get some sort of batch file that when someone plugs the thumbdrive it would automaticly copy everything with no complains.Heres the structure:
Thumbdrive
Mame\roms\example.zip
Mame\cfg\examle.ini
Mame\sta\example.sta
Hyperspin\media\mame\images\image4\example.png
hyperspin\media\mame\images\wheel\example.png
hyperspin\media\mame\themes\example.zip

Its this simple, and i have tried a copy batch file,only to get the warning about c: drive having the same folders, but since i dont want hook a keyboard i wouldn have the chanse to type ok.
Well thanks for any help anyone can offer, thanks.
Title: Re: Programers,help me create a installer batch file please.
Post by: drventure on May 16, 2011, 07:57:17 pm
SOunds like you've almost got it there.

type COPY /?

to see the options for COPY. Specifically the options /-Y and /Y will suppress the copy prompting.

Couple that setting up an AUTORUN.INF file on your usb stick and it could be completely automatic.

See here for details on that.

http://www.samlogic.net/articles/autorun-usb-flash-drive.htm (http://www.samlogic.net/articles/autorun-usb-flash-drive.htm)
Title: Re: Programers,help me create a installer batch file please.
Post by: Thenasty on May 16, 2011, 08:52:47 pm
you want to use XCOPY

xcopy source destination /s /e /y
Title: Re: Programers,help me create a installer batch file please.
Post by: drventure on May 16, 2011, 09:44:35 pm
That xcopy command will copy the source folder AND ALL SUBFOLDERS.

If that's what you want, definitely, xcopy will work.

Vista and Windows 7 also have RoboCopy, just another variant.