Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automating setup of the windows task scheduler

Status
Not open for further replies.

Jamin79

Programmer
May 23, 2001
9
GB
I need to be able to use VBScript to automatically create a task for execution in the Windows task scheduler, I'm sure it can be done but I can find no information anywhere.

Please Help.
 

Jamin79,

Try this.

cmd = "your command string here"
Set WshShell = Wscript.CreateObject("Wscript.Shell")
Atcmd = "AT " & SrvrName & " " & "10:00P" & " " & cmd
Return = WshShell.Run(ATcmd, 0, TRUE)


Fengshui1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top