SyntaxHighlighter

2012-10-31

to run the batch(.bat) file without showing the (command line tool) window in Windows

1.At first, we have a batch file, FOO.BAT for example.

2.Make a vbScript file, BOO.vbs for example
contents with the script below:

Set ws = CreateObject("Wscript.Shell") 
ws.run "cmd /C FOO.bat",vbhide 

3. Put the BOO.vbs with FOO.bat, or say, put the files into the same directory.

4. done.

0 件のコメント:

人気の投稿