Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Local Reboot of NT Workstation

by $code or die (Deacon)
on Oct 28, 2000 at 18:17 UTC ( #38918=note: print w/replies, xml ) Need Help??

in reply to Local Reboot of NT Workstation

It's in the Win32 Module as well, so this should do the trick:
use Win32; my $machine = ""; my $message = 'WARNING: This system is about to reboot'; my $timeout = 10; # 10 seconds countdown my $forceclose = 1; # Force all applications to close without saving my $reboot = 1; # Reboot the system after shutdown Win32::InitiateSystemShutdown($machine,$message,$timeout,$forceclose,$ +reboot);
There is also an abort call - Win32::AbortSystemShutdown($machine);

Good Luck

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://38918]
[shmem]: LanX can get the logs from cbstream at any time from me.
shmem relocates to the pub over the street. Have a nice time.
[LanX]: well .. not so much interested in reading this article
[LanX]: my 2 cents: AngloZionistic sounds like an antisemtic theory, but to be critical of zionism doesn't mean to be anti-semitic
[shmem]: it hasn't been coined as a *mustread* without authority from the promoter
erix shoots an anti-bubble missile towards LanX

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2018-03-19 21:32 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.