Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: prevent new DOS box
You might also try adding command /c or cmd /c to your command line, as you would in the DOS environment, to start another command interpreter session. This should return control to the parent session of the command interpreter, and if the DOS window stays open, you should be able to pass further commands to it...
Maybe don't add the /c to the parameter string?
if exist status.ini del c:\status.ini call (your executable) If errorlevel = blah echo SUCCESS=1 > c:\status.INIand so on
(check my syntax for DOS IF command as it's been a while...)
Then you can loop until status.ini appears, and read the contents for a result.
If you RunWait the DOS BAT file, then you can use
code=IntControl(64,0,0,0,0)to get the return code.
Article ID: W12896
Filename: Prevent New DOS Box from Opening Each Command.txt
File Created: 1999:04:15:16:50:22
Last Updated: 1999:04:15:16:50:22