From: Bruce W. <br...@mi...> - 2002-05-25 19:30:06
|
This page: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/shu tdown_04ry.asp indicates we can avoid a reboot with a shutdown instead. I changed the code to this: $v_reboot = new Voice_Cmd '[Reboot,Shut Down] the computer'; if ($state = said $v_reboot and $OS_win) { .. my $reboot = ($state eq 'Reboot') ? 1 : 0; Win32::InitiateSystemShutdown($machine, 'Rebooting in 1 minute', 60, 1, $reboot); I also uncommented the 'abort the reboot' command (not sure what that was disabled). Bruce -----Original Message----- I wondered if there was an orderly windows shut down and Power OFF command, rather than a reboot command. I want to be able to shut the computerr down on command. |