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: Programers,help me create a installer batch file please.  (Read 1967 times)

0 Members and 1 Guest are viewing this topic.

abispac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1625
  • Last login:July 24, 2025, 12:57:01 am
Programers,help me create a installer batch file please.
« 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.

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: Programers,help me create a installer batch file please.
« Reply #1 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

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: Programers,help me create a installer batch file please.
« Reply #2 on: May 16, 2011, 08:52:47 pm »
you want to use XCOPY

xcopy source destination /s /e /y
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

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: Programers,help me create a installer batch file please.
« Reply #3 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.