One-click shutdown

By gbhall
Dec 20, 2005
  1. 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?
  2. Mictlantecuhtli

    Mictlantecuhtli TS Evangelist Posts: 4,345   +11

    XP has own application for that, shutdown.exe. Check the required parameters from command prompt, and create a shortcut for it.
  3. gbhall

    gbhall TechSpot Chancellor Topic Starter Posts: 2,423   +77

    Ain't MS bods odd?

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

    Thanks so much for the solution Mic.
  4. fad3toblack

    fad3toblack TS Rookie Posts: 38

    Another method would be to hit Alt-F4, then U. Not quite as easy as a double-click, but its always there for you.
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...