
fashimpaur
User
Jun 25, 2002, 10:06 AM
Post #2 of 12
(17728 views)
|
Re: [Jean] Shutting down Win2K from Perl
[In reply to]
|
Can't Post
|
|
Jean, I thought I had posted this to you yesterday, but it seems to have disappeared. From the Perl Documentation at Activestate.com: see http://aspn.activestate.com/ASPN/Products/ActivePerl/lib/Win32.html Win32::InitiateSystemShutdown (MACHINE, MESSAGE, TIMEOUT, FORCECLOSE, REBOOT) [EXT] Shutsdown the specified MACHINE, notifying users with the supplied MESSAGE, within the specified TIMEOUT interval. Forces closing of all documents without prompting the user if FORCECLOSE is true, and reboots the machine if REBOOT is true. This function works only on WinNT. This says it only works for NT but it may work for Win2000. I don't find much other than that. Maybe you can find the kernel.dll and pertinent docs to find out how to use Win32::API to do this. Good Luck, Dennis $a="c323745335d3221214b364d545". "a362532582521254c3640504c3729". "2f493759214b3635554c3040606a0", print unpack"u*",pack "h*",$a,"\n\n";
|