shutdown -s -t 00
shutdown -r -t 00
Or if you're real lazy, create a shortcut on your desktop, putting the following in the shortcut location:
Code:shutdown -s -t 00
Alternately if you want to reboot the computer, you can use the following:
Code:shutdown -r -t 00
He said external disk case. Suspect usb hd. It has a power supply external. Its just a led light on. Don't worry about it. your drive is down.
Ok ......... read again. Maybe both. messed up.
Or if you do not know any programming,I can make it for you for free in about a week.Because in the next 3 days I am busy,but after that I am available.
You can also use a freeware app called AutoHotKey. This program allows you to save a script to the Startup Folder. I never tried it in Windows 7, but it works in XP.
So for Example, the Program will allow you to save a "shortcut.ahk" file to the Startup Folder. So if you used F1 to Shut Down, the script would read.
; When I press F1, I want to Shut Down
F1::Run, Shutdown.exe -s -t 00
You do have to leave the AutoHotKey program running in the System Tray for the script to be executed. There are some good tutorials on the Internet to help.
Get a keyboard with programmable macro keysI know these commands but I was talking about key (on the keyboard)
If you create a shortcut on the desktop (or anywhere) using the command as voyagerfan suggested, you can then right click the shortcut go to properties > Shortcut tab, and from there you can set a Shortcut key.
If you don't want an icon on your desktop, you can just put it elsewhere, like in your program files or documents folder.
My External Drives are plugged into a Power Strip on the Floor. I just step on the Red On/Off Button on the Power Strip with my toe. Windows Can't turn off the Power Strip unless you had some smart switches wired in the house.
A keyboard shortcut for the "Safely Remove Hardware", can be made with AutoHotKey that I know works with XP, but if the USB Drive is Powered by a external power Supply, then that can't be turned off. They do make external Drives that do not have external power supply's, and are just powered by the USB Port. I have one, but it is the smaller 2.5 inch drive.
Windows can't shut down a External Drive Enclosures Power Supply, because the Power Supply is not connected to the PC's Motherboard.