JimH Posted December 2, 2004 Share Posted December 2, 2004 This topic arises from work in following up my previous Post: http://www.autoitscript.com/forum/index.php?showtopic=6427Copying the relvant Function Specification I tried this code:Shutdown(6) ;Force a reboot(Newbie Question: how do I open/close a Code section?).It certainly rebooted my system, but the first time I executed it, it posted a 216 Error ....... subsequently it performed as advertised, no Error Message.If this is 'not a Bug, but a Feature' I think users need to be aware of it. Doin' the Shift-Click Drag .... Link to comment Share on other sites More sharing options...
ezzetabi Posted December 2, 2004 Share Posted December 2, 2004 Os? Can we see some code? Did it rebooted the system, are you sure it is an autoit error and not a OS or application error for being closed violently? Also Shutdown(2) gives the same problem? Link to comment Share on other sites More sharing options...
JimH Posted December 2, 2004 Author Share Posted December 2, 2004 Os? Can we see some code? Did it rebooted the system, are you sure it is an autoit error and not a OS or application error for being closed violently? Also Shutdown(2) gives the same problem?<{POST_SNAPBACK}>OS is Win XP Home.The code is the one-liner that you see above my message (placed in file 'Reboot.au3' on my desktop and double-clicked). I next tried the forced shutdown -- Shutdown(6) -- and that worked Error-free (but maybe the one-time error message had been used up on the Reboot version).Since reading your response I tried Shutdown(2) and that appears to be OK.I have the distinct impression that the Error Message is a one-time deal across all variants of Shutdown, and in practice -- once you flush it out in testing -- it won't bother the end-user.JimH Doin' the Shift-Click Drag .... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now