Saturday, May 16, 2009

Making those desktop shortcuts, lower left.....

If you'd like a one-click Reboot or Shutdown shortcut like mine, shown here in the lower left of the desktop, here's the way I did it:-

Right-click on an empty part of the desktop, and choose New -> Shortcut. Then in the box, type in as follows: C:\Windows\System32\shutdown.exe -r -f -t 05 and be sure you leave a single space between the "-r", "-f", "-t" and "05".

Here's what that command means:- It's telling the shutdown application to do a reboot, and to force the closure of any open programs, and to begin all that in five seconds from now. You can leave out the "-f" if you don't want to force the closure of open programs, and you can change the numbers after the "-t" to anything from 00 to 30, which are times in seconds, or you can even leave out the "-t" part as well, because a normal operation will occur within 30 seconds anyway as a rule. That's pre-determined by the normal shutdown/startup procedures programmed into Windows. This just tweaks all that a little bit.

If, instead of making a Reboot shortcut, you'd like a Shutdown one, just replace the "-r" with a "-s" in the above command. The "-r" meaning reboot, and the "-s" meaning shutdown, of course. And you can change that one just like the other, if you wish. If you're wondering why I added the "-f" to force closure of any open programs, it's because I've noticed lately that there are some things running in the background sometimes that we don't know about, and those can delay the whole procedure when they don't close promptly. I sometimes have been getting pop-ups telling me that certain things have not closed, and asking if I would like to force them to close. This is a work-around for all that. The system doesn't have to ask me about something that I've already given it a command to do.

You can find nice icons for your new shortcuts, or you could do like me, and make your own. You can get a great program for that here and it will not only edit existing icons, but it can make new ones from any image which you resize down to about 400x400 pixels, so if you want an icon of your Aunt Nellie, you can have it. Have fun!

No comments:

Post a Comment