Guest JonHeath Posted March 14, 2004 Share Posted March 14, 2004 On shutdown or logoff I'd like to be able to do the following: 1. Run an ASP form script that requires user input. Only after submitting the form will the PC continue to shutdown/logoff. (doubt this is possible?). OR 2. Run a windows popup box (not asp) asking them if they're sure they want to shutdown/logoff with Yes/No options. With Yes continuing shutdown/logoff and No taking them back into Windows. I'd like to be able to word the message that pops up myself. I've been advised AutoIT might be the way forward...can anyone shed any light? Many thanks JH Link to comment Share on other sites More sharing options...
Administrators Jon Posted March 14, 2004 Administrators Share Posted March 14, 2004 Pretty sure that 2000 and XP have scripts that you can run on shutdown/logoff. I don't know the registry keys off the top of my head though. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Guest JonHeath Posted March 14, 2004 Share Posted March 14, 2004 They do, but they just simply run the script non-inteligently. So if the script had no user input it would be fine...but my script has user input. If doing option 2 (from my first post) then I'd reword the question to say "Have you completed such and such a script before logging off/shutting down" 'Yes' would continue shutdown/logoff. 'No' would take them back to their computer. Link to comment Share on other sites More sharing options...
ezzetabi Posted March 15, 2004 Share Posted March 15, 2004 The simpliest idea is make a script that make what you want and it shout down after... You disable the possibility of log off in other means and you are all right Link to comment Share on other sites More sharing options...
CyberSlug Posted March 15, 2004 Share Posted March 15, 2004 Can a 2000/XP logoff-script abort a shutdown? ;don't know if this will work at all shutdown -a RunWait("C:\SomeCompiledAutoItScript.exe") shutdown Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Gene Posted March 15, 2004 Share Posted March 15, 2004 On shutdown or logoff I'd like to be able to do the following:1. Run an ASP form script that requires user input. Only after submitting the form will the PC continue to shutdown/logoff. (doubt this is possible?).OR2. Run a windows popup box (not asp) asking them if they're sure they want to shutdown/logoff with Yes/No options. With Yes continuing shutdown/logoff and No taking them back into Windows. I'd like to be able to word the message that pops up myself.I've been advised AutoIT might be the way forward...can anyone shed any light?Many thanksJHInstead of getting user input, why not set a flag (registry, or INI, or a file on disk) when the second script you mentioned completes. Then your first script can take whatever action is needed (maybe even run the second script while it has control).Gene [font="Verdana"]Thanks for the response.Gene[/font]Yes, I know the punctuation is not right... 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