The Tech Diary of an IT support geek

  • Home
  • Android
  • iOS
  • Mobile
  • PC
  • Tips
  • Contact US
Home » SINGLE CLICK ON THE DESKTOP TO SHUTDOWN

SINGLE CLICK ON THE DESKTOP TO SHUTDOWN

Did you know that in Windows XP you can shut down your computer from the (eventually DOS prompt) command line box? Moreover, you can do this by clicking your mouse only once.
All you need to do is… right-click on an empty Desktop spot -> select New -> Shortcut -> type shutdown followed by a space, and then enter one or more of the parameters listed below -> click Next -> type a suggestive name for your new shortcut -> finally, click Finish.

This is the Shutdown.exe (located in %systemroot%System32, usually C:WindowsSystem32) syntax:

shutdown [-i|-l|-s|-r|-a] [-f] [-m computername] [-t xx] [-c “Text”] [-d[u][p]:xx:yy]

Valid command line switches:

-a = Abort system shutdown in progress ONLY IF the -t xx timeout option was already set to ANY value other than 0. ALL switches except -l and -m are ignored during abort.

-c “Text” = Text comment (case insensitive) to be displayed in the Message area of the System Shutdown window. MUST be enclosed between quotes. Maximum allowed 127 ASCII characters.

-d [u][p]:xx:yy = Reason code for shutdown:
u = User code.
p = Planned shutdown code.
xx = Major reason code. Positive integer number less than 256.
yy = Minor reason code. Positive integer number less than 65536.

-f = Force running applications to close without warning.

-i = Display the shutdown interface (GUI). MUST be the first option!

-l = Log off the current user of the local computer (default action). Can NOT be used with the -m option unless the current user has Sysadmin rights, in which case the -m switch takes precedence.

-m computername = Remote/network computer name (most always case sensitive) to log off/restart/shut down. Current user MUST have Sysadmin rights to be allowed to use this switch!

-s = Shut down the local computer.

-r = Shut down and restart (reboot) the local computer.

-t xx = Set shutdown timer to timeout for xx seconds. IF NOT specified defaults to 20 seconds. Allowed values between 0 and 99 seconds. The -a switch is the ONLY one that CAN be used during the timeout period.

NOTES:
The dash (-) in front of these switches can be replaced by a forward slash (/).

Spaces are NOT required to separate the shutdown command from ANY following switches, but ARE required to separate ANY switch from its following parameter(s), if any.
For example:

shutdown -s -c “Shutting down!” -t 3

tells your computer to shutdown after waiting for 3 seconds while the System Shutdown window will display text above in the Message area.

Optional: after you’re done creating your customized shortcut for shutdown -> right-click on it -> select Properties -> enter your desired key “combo” in the Shortcut Key box (e.g. Ctrl + Alt + End) -> click OK/Apply.
From now on just left-click on your shutdown shortcut or hit that key combination to turn off/restart/log off your computer

  • Facebook
  • Twitter
  • LinkedIn
  • WhatsApp
  • Reddit

Related

Posted by Obasi Miracle on this date: 3 Comments Tagged With: SINGLE CLICK TO SHUTDOWN
Shortlink:

Sign Up in Seconds

Join us to get latest posts (ONLY) delivered to your inbox. No Spam, We Promise!

About Obasi Miracle

I am a dedicated web developer with interest in blogging and app development. I have lots of buddies and always ready to connect with like-minded pals - See more about me.

Comments

  1. Anonymous says

    at

    does this work on win7?

    Reply
  2. zingalvs says

    at

    hello mate,

    nice blog you had here..
    thought might wanna exchange links..
    visit me..

    Reply
  3. Obasi Miracle says

    at

    @ Anonymous, it does work on windows 7

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Next PostMost Computer Related Acronyms and Its Meaning
Previous PostHOW TO CLEAR BIOS INFO

RSS Inside: 3rd Planet Techies

  • SUITU Smart Portable Car Air Compressor Review and Performance Test
  • MAM and MT4 Integration: How MAM Enhances Your Trading Experience
  • Topdon JS3000 Car Battery Jump Starter Review and Performance Test
  • How to Repair Microsoft Outlook 365 in Windows 11?

Sign Up in Seconds

Join us to get the latest posts (ONLY) delivered to your inbox. No Spam, We Promise!

Recent Posts

  • How to Connect Bluetooth Keyboards to Android Phones and Tablets
  • How to Convert YouTube Music Videos to MP3
  • Top 10 Free Email List Sites To Get Free Leads For Your Marketing Campaigns
  • How to Drop a Pin on Google Maps

Looking For?

mtn cheat for android, how to transfer data on etisalat, how to share data on airtel, How to share data on etisalat, mtn free browsing cheat for android phones, how to transfer mb on etisalat, mtn mb cheat for android, mtn free browsing on android, how to transfer data on airtel, latest mtn cheat for android, mtn free browsing cheat codes with unlimited data downloads, how to share airtel data, mtn cheat code for android, best airtel tariff plan for browsing, 2go for windows phone, sharemobile ro, how to transfer etisalat data, mtn cheats for android, etisalat data transfer, airtel data share
© 2025. The Tech Diary of an IT support geek. Privacy Policy