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: Need help with a Batch File  (Read 3788 times)

0 Members and 1 Guest are viewing this topic.

danfman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 64
  • Last login:November 14, 2009, 10:26:45 pm
Need help with a Batch File
« on: October 03, 2009, 05:40:10 pm »
I am trying to create a batch file (actually a batch file converted into an .exe) to: 1)load Mala in a maximized state; 2)CabVol minimized; 3)Xpadder minimized.  I am using this .exe file as my shell application for InstantSheller.

When I type the following, CabVol opens minimized, Mala opens maximized, but Xpadder never opens...

start/min "Xpadder" "C:\Program Files\Xpadder\Xpadder.exe"
start/min "cabvol" "C:\Program Files\CabVol\CabVol.exe"
start/max "mala" "C:\Mala Files\mala\mala 1.04\mala.exe"

When I type this, CabVol opens minimized, Mala opens maximized, and Xpadder opens maximized (as would be expected)...

start "Xpadder" "C:\Program Files\Xpadder\Xpadder.exe"
start/min "cabvol" "C:\Program Files\CabVol\CabVol.exe"
start/max "mala" "C:\Mala Files\mala\mala 1.04\mala.exe"

The statements are identical except for "/min" in the top Xpadder start statement.  Why won't Xpadder open with the first batch file?  Is it possible Xpadder opening and closing.  Whenever I go to task manager a file in the list closes, but it happens so quickly my eye can't focus to tell which file closes. 

I am by no means a batch file writing expert, and this has me pretty stumped.
"It depends on how you define alone…" –Bill Clinton

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Need help with a Batch File
« Reply #1 on: October 03, 2009, 09:49:43 pm »
Try

start "Xpadder" "C:\Program Files\Xpadder\Xpadder.exe" /M

danfman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 64
  • Last login:November 14, 2009, 10:26:45 pm
Re: Need help with a Batch File
« Reply #2 on: October 04, 2009, 12:45:37 pm »
That did it.  Thanks. 
"It depends on how you define alone…" –Bill Clinton

TGov

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 223
  • Last login:March 21, 2017, 02:07:54 pm
  • I want to build my own arcade controls!
Re: Need help with a Batch File
« Reply #3 on: September 25, 2012, 11:44:31 pm »
This is pretty much what I need to do but I have no idea about how to go about making a batch file.  I have instantsheller installed and working, but Xpadder doesn't load with windows while using instantsheller.  I need xpadder to open minimized and powerstrip to load minimized with hyperspin loading maximized.  Is this something anybody can learn to do, or do you have to know programming?

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 25, 2025, 03:09:16 pm
Re: Need help with a Batch File
« Reply #4 on: September 26, 2012, 02:31:15 am »
Making a basic batch file is easy. Just create a text document with windows notepad and paste in the commands. Then save the text document as .bat instead of .txt (You may need to set windows to view file extensions in the folder options)

when it is run, it will run the command script you typed in. You can edit it by right-clicking and going to edit in the pop up menu.

Of course, if you are making your own commands, it can get more complex from there. That will take a little learning. Often, you can just grab a script that someone already posted and tweak it for what you need.  :cheers:

TGov

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 223
  • Last login:March 21, 2017, 02:07:54 pm
  • I want to build my own arcade controls!
Re: Need help with a Batch File
« Reply #5 on: September 26, 2012, 06:31:49 am »
How about making it an .exe?  Thank you for the response!  :cheers:

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 25, 2025, 03:09:16 pm
Re: Need help with a Batch File
« Reply #6 on: September 26, 2012, 09:50:33 am »
I have never done it. I have had no problems just running my batch files just as a .bat. I believe it is usually just done with a bat to exe converting utility. Maybe someone here has a good recommendation for one.