|
Save this one line of text as "invisible.vbs":
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
To run any program or batch file invisibly, use it like this:
wscript.exe "C:\Wherever\invisible.vbs" "C:\Some Other Place\MyBatchFile.bat"
或是建立batch檔後, 利用START /MIN xxx.bat的方式執行, 即可達到最小化執行.
Reference: http://www.experts-exchange.com/ ... /XP/Q_22677915.html |
|