Make a Scheduled Task not display a Command Prompt
From KoshWiki
- [22:03:42] <Wes> just wanted to let you know that I found a way to get the dos window that task scheduler loads and that you see when you're logged in via RDC, to be invisible
- [22:04:27] <Wes> just create a text file with contents like such...
- [22:04:49] <Wes> line 1: Dim WshShell, Return
- [22:05:05] <Wes> line 2: Set WshShell = WScript.CreateObject("WScript.Shell")
- [22:05:36] <Wes> line 3: Return = WshShell.Run("batchfiletoload.bat", 0, true)
- [22:05:40] <Wes> that's it
- [22:06:08] <Wes> then get task scheduler to load that vbs, task scheduler has a built-in vb compiler
- [22:06:14] <Wes> so it runs it easily
- [22:06:20] <Wes> and completely invisibly
or you could simply run the task with alternate user credentials..... :)
