Ability to close the DOS window of a batch file
Solved
Joël SERRA
-
lfg -
lfg -
Hello,
Under Windows XP, when launching an executable in a ".cmd" or ".bat",
I want to close the DOS window as soon as my "exe" is launched...
I can't find the syntax to do that.. who can help?
Thank you
Joël
Under Windows XP, when launching an executable in a ".cmd" or ".bat",
I want to close the DOS window as soon as my "exe" is launched...
I can't find the syntax to do that.. who can help?
Thank you
Joël
Configuration: Windows XP Internet Explorer 6.0
14 réponses
aflame
Thank you soooo much!!
lfg
some words from 2007 still useful in 2019 :o)
No, the command "exit" is only taken into account after the executable launched in the batch is closed, whereas my need is for "exit" to be taken into account as soon as the executable is launched!
I looked at TASKKILL, but it doesn't seem to work either because "TASKKILL /im cmd.exe" closes all open DOS windows. Is there a syntax that allows me to "kill" only the one that interests me?
I looked at TASKKILL, but it doesn't seem to work either because "TASKKILL /im cmd.exe" closes all open DOS windows. Is there a syntax that allows me to "kill" only the one that interests me?
Hi
I have the same problem, I run an executable from a .bat file but the DOS window stays open.
I tried what’s above but it doesn’t work, or maybe I typed my command line wrong. Could you please write the command line for me with the correct syntax just right? It's important, it's for a project!!!
Thanks in advance!!!
I have the same problem, I run an executable from a .bat file but the DOS window stays open.
I tried what’s above but it doesn’t work, or maybe I typed my command line wrong. Could you please write the command line for me with the correct syntax just right? It's important, it's for a project!!!
Thanks in advance!!!
Hello
For my part, it works very well, thank you for this very valuable help!
For those for whom it doesn't work, here is the content of my *.bat file, if it can help you:
cd /d c:\hlserver
start hlds -console -game cstrike +port 27015 -nomaster -insecure +servercfgfile server.cfg
exit
For my part, it works very well, thank you for this very valuable help!
For those for whom it doesn't work, here is the content of my *.bat file, if it can help you:
cd /d c:\hlserver
start hlds -console -game cstrike +port 27015 -nomaster -insecure +servercfgfile server.cfg
exit
I have the sentence "Press any key to continue..." that prevents DOS from closing... sniff... what to do?