AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

windows restart

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
al
Guest





PostPosted: Sun Jul 25, 2004 4:18 pm    Post subject: windows restart Reply with quote

I wrote this script which checks my internet connection if I get disconnected it reboots windows. Problem is
Code:
Shutdown, 2
or
Code:
Shutdown, 6
do not kill all running processes so I get error messages thus windows doesn’t reboot. Windows reboots without any problem when I press ctrl+alt+delete *2 manually while all of the same processes are running.
Could someone please give any ideas how to solve this problem also tell me which command windows executes when you press ctrl+alt+delete *2 (or Start->Shutdown->Restart).
I’m using Windows ME.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Sun Jul 25, 2004 10:35 pm    Post subject: Reply with quote

On Windows 9x, I believe pressing Ctrl-Alt-Del twice aborts the windows session and reboots. All running processes cease to exist, so all unsaved changes to documents are lost, and any other cleanup is not done. However, any pending data in the cache is written to the disk, thus you probably shouldn't see "computer wasn't shut down properly" when you start up the next time.

So I think that way of shutting down is very extreme. There is also probably no way to automate shutting down that way, especially not the second control-alt-del.

Windows 9x sometimes has problems shutting down depending on what drivers or software is running. I've experienced this myself, in my case a bug involving mapped drives, for which fortunately there was a fix. You might consider trying to isolate which software or driver is preventing a clean/normal shutdown. If necessary, you could try getting one of the process utilities mentioned in the scripts & utilities forum. These can kill processes that don't have a window associated with them (you can use WinClose or WinKill on those that do).
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group