Batch File - Need HELP Writing

  • Thread starter Thread starter danfman
  • Start date Start date
D

danfman

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.
 
danfman said:
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.

I suspect that Xpadder does start but that you cannot see it on the Task
Bar. Try this batch file:
@echo off
start /min "Xpadder" "C:\Program Files\Xpadder\Xpadder.exe"
echo Pausing for a moment . . .
ping localhost -n 5 > nul
tasklist | find /i "xpadder"
pause
start /min "cabvol" "C:\Program Files\CabVol\CabVol.exe"
start /max "mala" "C:\Mala Files\mala\mala 1.04\mala.exe
 
danfman said:
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.

Hi "danfman",

Are all 3 programs win32 applications? Have you tried opening them in a
different order?

The first thing I noticed is that there is no space between start and /min,
but I opened a Command Prompt window and tried:
start/min notepad
and NotePad appeared minimized on the taskbar.

Note the order of the parameters in the help tip for start:

START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/WAIT] [/B] [command/program]

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

"title"
Specifies the title to display in Command Prompt window title bar.

Or why not this:

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

Or change directories first:

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

HTH. (Hope This Helps. :)
--Richard
 
Richard said:
Hi "danfman",

Are all 3 programs win32 applications? Have you tried opening them in a
different order?

The first thing I noticed is that there is no space between start and
/min,
but I opened a Command Prompt window and tried:
start/min notepad
and NotePad appeared minimized on the taskbar.

While it is highly recommended to separate parameters with at least one
space, the Command Processor also recognises the initial forward slash of a
parameter as a delimiter.
 
:
While it is highly recommended to separate parameters with at least one
space, the Command Processor also recognises the initial forward slash
of a parameter as a delimiter.

Hi Pegasus,

Thanks for confirming that point.
Cheers. --Richard
 
Back
Top