View Full Version : Batch file type windows program.
Van_Dammesque
08-22-06, 05:54 AM
Hi,
I'm looking for a batch-file type program that can be used in windows.
I have certain batch files that runs programs in a certain order, but the batch file pauses waiting for the windows program to finish so defeating the purpose of a batch file. The batch file continues if I quit the program it is waiting on.
Any ideas?
Thanks!(pirate)
Not sure that I really follow what you're trying to say. However, you might want to take a look at WMI scripting (http://www.microsoft.com/technet/scriptcenter/guide/sas_wmi_overview.mspx) and or Monad/Powershell (http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx).
Van_Dammesque
08-22-06, 07:38 AM
Isn't what I'm after I'm afraid, here is what I'm trying to do in a batch script I have:
"C:\Prog Files\AppX.exe" -parametersX
"C:\Prog Files\AppY.exe" -parametersY
"C:\Prog Files\AppZ.exe" -parametersZ
Now what happens is the first program runs (a windows program rather than dos program), the script file stops after the first line (i think it hasn't return a "finished" command), if I quit AppX.exe, the script file then continues to AppY.exe and puase and so on.
I'm after a windows based launcher to do the same as the script above, i.e. to launch programs with one click.
Use cmd /K or cmd /C in your batch script.
C:\>cmd /?
Starts a new instance of the Windows XP command interpreter
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
[[/S] [/C | /K] string]
/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains
evilghost
08-22-06, 01:09 PM
cmd.exe /c "C:\Prog Files\AppX.exe -parametersX"
cmd.exe /c "C:\Prog Files\AppY.exe -parametersY"
cmd.exe /c "C:\Prog Files\AppZ.exe -parametersZ"
Van_Dammesque
08-22-06, 03:53 PM
Thanks for the help!
I tried the \c command and it didn't work.
It does work if I have:
Start "" "appX.exe"
Start "" "appY.exe"
etc...
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.