On WinXP, can I run a batch (.bat or .cmd) file, via a shortcut, without a "black window" ?
feedback
|
migrated from stackoverflow.com May 11 '10 at 18:32
This question came from our site for professional and enthusiast programmers.
|
Save the following as wscript, for instance, hidecmd.vbs after replacing "testing.bat" with your batch file's name.
The reference is here http://msdn.microsoft.com/en-us/library/d5fk67ky.aspx | ||||
|
feedback
|
|
Use start with the '/B' option. For example:
| |||||
feedback
|
|
You can change the properties of the of the shortcut to run minimized. To run it completely invisibly you'll need something else like Windows Scripting. | |||
|
feedback
|
|
This is just a simplification of Shaji's answer. You can run your batch script through a vbs script like this:
This will execute your batch file with no cmd window shown. | |||
|
feedback
|
|
Use Hidden Start | |||
|
feedback
|