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
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.