strJobDelete = "SCHTASKS /Delete /TN ""TaskName"" /F"
strJob = "schtasks /create /sc once /ru NetworkUsername(if u are in network) /rp Network Password /tn ""TaskName"" /tr ""filepath"" /st "time
Dim oShell
Set oShell = CreateObject ("WSCript.shell")
oShell.run "cmd /K cd/ & "& strJobDelete &"&"& strJob &"& exit"
Set oShell = Nothing

Custom Search
Friday, February 12, 2010
DOS -commands and it's help from command prompt
Subscribe to:
Posts (Atom)