Closed Thread Icon

Preserved Topic: Shutting down on WinME (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=16671" title="Pages that link to Preserved Topic: Shutting down on WinME (Page 1 of 1)" rel="nofollow" >Preserved Topic: Shutting down on WinME <span class="small">(Page 1 of 1)</span>\

 
Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-25-2002 16:51

I want to run a Perl script in my laptop (WinME box) when I shut it down...

How can I set events to take place during the shutdown sequence on Windows?


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 06-25-2002 16:56

dont know about ME, but on NT-based machines there is the so called command

shutdown -s

if you can call that somehow in perl?

but i dont know what you mean with events during the shutdown sequence?

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-25-2002 17:49

I know Windows goes thru a bunch of stuff when shuts down, I just want it to include my script in that 'bunch of stuff'...

{Clarification}-- is there, like, a reg key I should look for or a 'Shutodown.bat' in the Windows directory?


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

[This message has been edited by Petskull (edited 06-25-2002).]

reitveld
Paranoid (IV) Inmate

From: Kansas City, MO USA
Insane since: Sep 2001

posted posted 06-25-2002 20:52

check out www.zdnet.com they had a program which handled this (ran anything you wanted before shutting down). I don't remember the name but a quick search should uncover it.

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 06-25-2002 21:52

There aren't any folders or registry keys where you can put all the links to programs you want to run on Windows shutdown, they only exist for startup.

I don't know if it's possible to execute programs from a perl script, but if it was possible you could run

rundll32 user.exe,exitwindows

to shut Windows down and run the script instead of shutting Windows down the way you do it now. Or, if that isn't possible, you can create a .bat file on your desktop with one line that executes the perl script and another one that calls the shutdown command afterwards.

kuckus (cell #282)

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-26-2002 14:11

I found one mention of 'rundll32 user.exe,exitwindows' in my 'user.dat' and two in the registry, but I think they only showed up there because I ran the search ('ContainingTextMRU'- whatever that is)....so, nothing good...

ok, let's reverse engineer this.... somewhere, there's got to be a file that has a line in machine code that connects the shutdown button on the start menu to 'rundll32 user.exe,exitwindows'.... hmm.... any ideas how to find it?

{edit} oh, by the way- chew on this...


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

[This message has been edited by Petskull (edited 06-26-2002).]

« BackwardsOnwards »

Show Forum Drop Down Menu