Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: danfman on October 03, 2009, 05:40:10 pm

Title: Need help with a Batch File
Post by: danfman 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.
Title: Re: Need help with a Batch File
Post by: headkaze on October 03, 2009, 09:49:43 pm
Try

start "Xpadder" "C:\Program Files\Xpadder\Xpadder.exe" /M
Title: Re: Need help with a Batch File
Post by: danfman on October 04, 2009, 12:45:37 pm
That did it.  Thanks. 
Title: Re: Need help with a Batch File
Post by: TGov 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?
Title: Re: Need help with a Batch File
Post by: Vigo 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:
Title: Re: Need help with a Batch File
Post by: TGov on September 26, 2012, 06:31:49 am
How about making it an .exe?  Thank you for the response!  :cheers:
Title: Re: Need help with a Batch File
Post by: Vigo 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.