Wednesday, September 30, 2009

How to shutdown Computer from command prompt (DOS)

You can shutdown/ restart/ log off your computer from command prompt. To open the DOS or Command prompt go to :
Start-->All Programs--> Accessories --> Command Prompt
, or
Start-->Run and type cmd .

In this Command prompt type:

shutdown -s ( to shutdown the computer. By default you'll have 30 sec. to save your running work.)
shutdown -r ( to restart )
shutdown -l ( to logoff )
shutdown -a ( to abort any system shutdown process )