New
#51
In additional to batch file you can just hide the running batch window, just for preventing stealing focus problems. Instead of starting batch directly just start it via .vbs file
You must edit path to your batch file.Code:Dim oShell Set oShell = WScript.CreateObject ("WSCript.shell") oShell.run "C:\windows\system32\cmd.exe /c c:\rebootb.cmd", 0, False Set oShell = Nothing
Task will be pointed to start a program "C:\windows\system32\wscript.exe", arguments is a full path to you vbs file, ex.
"C:\hidereboot.vbs"
Start in — C:\windows\system32\
I run it with "run with highest privileges" option on general tab.Also check 'Run whether user is logged or not".
Edit:
'Run whether user is logged or not" prevents task to start in my case. It runs manually but in automatic mode it fails with error Error Value: 2147943726 and it can not be fixed with solutions found across the web.
Last edited by woffko; 30 Oct 2016 at 09:27.