New
#1
scheduled task
I have a scheduled task that writes to a open window. Using the following script. This task has been running for years. All of a sudden the task runs but does not write to the window. If I manually start the scheduled task it works. Is it a problem with not waiting ling enough? Or is it something that has changed in the way things work. Using Windows 20h2.
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate "Utility1"
WScript.Sleep 1000
WshShell.SendKeys ".\utility shutdown 23"
WshShell.SendKeys "{Enter}"
WScript.quit