The best way I found is posted at http://serverfault.com/questions/9038/run-a-bat-file-in-a-scheduled-task-without-a-window.
Schedule a .vbs script containing something like:
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "C:\Scheduled Jobs\mybat.bat" & Chr(34), 0
Set WinScriptHost = Nothing
There are other tools like hstart and cmdow that lets you do pretty much the same thing, but I prefer using built-in tools a lot more.
No comments:
Post a Comment