I have found that some of the programs I launch leave processes running, and the console window will not close until they terminate if I just run them by launching the executable.
The START program fixes that, but the old problem with START is still around. You can't just use:
START "c:\my dir\myfile.exe"
The first parameter of START is still the window name. If you omit it, you just open a CMD console box with the window named whatever you tried to launch. In the above instance, I'd now have a console window with the window title of "c:\my dir\myfile.exe". Not what I wanted!
To omit the window name, just use a pair of double quotes to define an empty string, such as:
START "" "c:\my dir\myfile.exe"
Finally, end your batch file with an EXIT command to ensure it closes.
This method seems to work consistently in Windows 7 and 8.
For troubleshooting, I find that adding an ECHO of what I'm about to do, then a TIMEOUT of what I just did, helps a lot. For example:
ECHO I'm about to launch the program...
START "" "c:\my dir\myfile.exe"
TIMEOUT 5
Since the Timeout gives you a countdown, you don't need to ECHO that you're about to delay.
No. (Unless you want to compare with nohup and &). – Hennes – 2015-10-16T14:55:30.360
Can we consider start like
– Muhammad Hewedy – 2014-01-07T08:03:01.480nohup
http://en.wikipedia.org/wiki/Nohup