Creating Shutdown Icon or One Click Shutdown:
Navigate to your desktop. On the desktop, right-click and go to New, then to Shortcut (in other words, create a new shortcut). You should now see a pop-up window instructing you to enter a command line path.Use this path in “Type Location of the Item”
SHUTDOWN -s -t 00
If the C: drive is not your local hard drive, then replace “C” with the correct letter of the hard drive. Click the “Next” button. Name the shortcut and click the “Finish” button.
What this batch file does is it points to the shutdown function on your computer, generally located at c:\windows\system32\shutdown. You may want to double check this, as some computers may have it listed as c:\winnt\system32\shutdown. If this is the case, then you want to change your batch file accordingly. The -s tells it to shutdown the computer. The -f tells it to force the computer to shutdown so that it doesn't get hung on any open applications. The -t sets the time for it to wait before it actually shuts down. You can set it to whatever you want, but I put in 00 to set it to zero
you can also set a custom time like after 30 secs so you can use SHUTDOWN -s -t 30
Now whenever you want to shut down,
just click on this shortcut and you’re done.
0 comments:
Post a Comment