One-click shutdown

Status
Not open for further replies.

gbhall

Posts: 2,419   +77
I have a little batch file which solved the old Win98 shutdown problem which does not seem to work in XP. The batch file contains...

NET USE * /delete /yes > nul
C:\WINDOWS\RUNDLL32.EXE SHELL32.DLL,SHExitWindowsEx 9 > nul

Putting this on the desktop meant my users could get a guaranteed shutdown of their computer with just a double click. Now PC's are gradually upgrading to XP, I find that although there is no longer any failure to close down, users do not like the long-winded process of doing it manually - they still want the convenience of a double-click - go home. Why does the above batch file not work under XP? anyone know?
 
XP has own application for that, shutdown.exe. Check the required parameters from command prompt, and create a shortcut for it.
 
Ain't MS bods odd?

DOH! I already tried that, but found it didn't do anything.....you drew my attention to the fact that it HAS to have at least one parameter.....how very, very peculiar, like MS.

Thanks so much for the solution Mic.
 
Status
Not open for further replies.
Back