On Dec 04, Patrick J. LoPresti wrote: | You have to call AllowPriv first. Ack, i should have mentioned i have this :-)
| Browse to <http://unattended.sourceforge.net/apps.html> and search for | "shutdown.pl" near the bottom. Very similar to the code i had yet it pointed me in the right direction. i was using Win32::InitiateSystemShutdown which failed but didn't return a proper error message. The one from Win32API still fails, but gives an error message different from simply calling shutdown.exe: "The device is not ready" This makes more sense (doing this within a startup script, remember?), but doesn't help me, as i'm not sure how i can get around this. _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
