
mtiberia
Canada
Asked
— Edited
I have an ebbed computer running Windows 8, that has to shut down gracefully when the power is switched off.
I have a script written but EZ Builder won't allow a shutdown unless you click
" No " . Which is a problem with no keyboard, monitor etc.
Tried to Google it but am having no luck.
Thanks
There are probably other solutions.
Of course the trick is having Windows not shut down whatever you are using to generate the key press before it shuts down ARC.
I am not aware of a way to disable the dialog in ARC.
Have you thought about just having the computer sleep instead of shut down?
Alan
Apparently you can use the " Local Group Policy Editor to turn off automatic termination of applications that block or cancel shutdown policy settings "
, but for the life of me I can't seem to find it on my computer.
Group Policy Editor can be fond by opening a command prompt (probably want to do as admin) and typing gpedit [enter]
Alan
http://www.addictivetips.com/windows-tips/disable-auto-termination-of-applications-that-block-windows-8-shutdown/
Group Policy Editor (gpedit.msc) is only in Windows 8 Pro and Windows 8 Enterprise editions. *stress*
os.system("shutdown.exe /f")
os.system("shutdown.exe /p")