shutdown pc from dos prompt

Reply

Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 55
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

shutdown pc from dos prompt

 
0
  #1
Nov 7th, 2004
you can shut down your pc from dos prompt like this :
type .... shutdown -s ( it'll give you 30 secs to save your work and then it'll shutdown)

for restart type shutdown -r
and for logoff type shutdown -l

for more options type shutdown only.

I tested these only on win xp ...
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,036
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 129
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: shutdown pc from dos prompt

 
0
  #2
Nov 7th, 2004
Ahh ... the shutdown -r command I use that command in linux hehe
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 3,826
Reputation: Catweazle is a jewel in the rough Catweazle is a jewel in the rough Catweazle is a jewel in the rough Catweazle is a jewel in the rough 
Solved Threads: 144
Team Colleague
Catweazle Catweazle is offline Offline
Grandad
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 55
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: shutdown pc from dos prompt

 
0
  #4
Nov 8th, 2004
Hey Catweazle I had that in mind too .. but when I tried that .. I clicked on the shortcut ... and bang .... it restarted my pc ... all my work went in vain .. hehe. So I thought I'd better not post that here.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 55
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: shutdown pc from dos prompt

 
0
  #5
Nov 8th, 2004
Originally Posted by cscgal
Ahh ... the shutdown -r command I use that command in linux hehe
It's been a long time when I used linux but what I remember is that I used to shutdown linux with halt command ... is it still used or shutdown is the new command .... I've used Red Hat Linux 4 I think.
Reply With Quote Quick reply to this message  
Join Date: Jan 2004
Posts: 30
Reputation: UNE is an unknown quantity at this point 
Solved Threads: 0
UNE UNE is offline Offline
Light Poster

Re: shutdown pc from dos prompt

 
0
  #6
Mar 2nd, 2005
i have tried to use those commands in Win2000 OS but it didnt work it displaied this:
"Cannot find the file “shutdown� (or one of its components). Make sure the path and filename are correct and all required libraries are available "

which are those libraries any idea???
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 46
Reputation: seatsd is an unknown quantity at this point 
Solved Threads: 0
seatsd's Avatar
seatsd seatsd is offline Offline
Light Poster

Re: shutdown pc from dos prompt

 
0
  #7
Mar 2nd, 2005
To shutdown 2000 from the command lline I think you can use:
rundll.exe user.exe,exitwindows

Well, I know it worked back in Windows 95 anyways.
Cornerstone Computing
Kalispell, MT
www.cs-computing.biz
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 18
Reputation: sweet_jam_in is an unknown quantity at this point 
Solved Threads: 0
sweet_jam_in sweet_jam_in is offline Offline
Newbie Poster

Re: shutdown pc from dos prompt

 
0
  #8
Apr 8th, 2005
Is there any shortcut in dos in win98 ???
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 238
Reputation: Lightninghawk is an unknown quantity at this point 
Solved Threads: 6
Lightninghawk's Avatar
Lightninghawk Lightninghawk is offline Offline
Posting Whiz in Training

Re: shutdown pc from dos prompt

 
0
  #9
Jun 7th, 2005
DOS shutdown commands with fun attachments.

Ok as you know by now when you reach a DOS Prompt you type:

shutdown -s [to shutdown]
shutdown -r [to restart]

Now how about adding a little flavor to them. Especially Windows XP users:

the switches:

-c [allows you to type a comment inside quotation marks that will be shown on screen during the shut down process] ex:

-c "your text here"

-t [this switch allows you to se a time in seconds til the shutdown occurs]ex:

-t 15
-t 84

the first one sets the timer at 15 seconds
the second one sets the timer at 84 seconds
so if you type the following into the command line:

shutdown -r -c "Your computer is now restarting" -t 12


this command creates the following situation:

Restarts the computer:
While displaying a neat dialogue box, with a countdown showing, and showing the message ::: your computer is now restarting :::


There are many other switches as well. Say you don't want to shutdown or restart, you just want to logoff.
type this switch:

logoff.exe

and you logoff.
I'm am still searching for the switch for Switch User though

Hope you like this information. It also works inside of batch files as well.


PS: Most all DOS commands work in EVERY DOS invironment. There are very few changes. But yes these commands for the most part also work in 98SE.

On another point. There are many that were not built into the 95 or earlier editions of windows though.

For a fairly complete list of common DOS switches in XP:

Open your CMD/DOS/Command Prompt and type the switch

/?

This is also helpful for finding alternate uses for specific switches: like say you need help with the delete command switch.
type:

delete /?

this will list all of the optional switch addons available for the delete command.
+_-¤ ŦĦễ £ﺄiĢĦŧňĨňĢĦǻщk ¤-_+
South Georgia Computers - Home and Office IT Solutions - Owner/Tech
Need the BEST software for Virus/Spyware Removal? Download - AVG Free -

Computer Problems? Forget the GeeK Squad use something better: DaniWeb
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 50
Reputation: wizmonster is an unknown quantity at this point 
Solved Threads: 0
wizmonster's Avatar
wizmonster wizmonster is offline Offline
Junior Poster in Training

Re: shutdown pc from dos prompt

 
0
  #10
Aug 6th, 2005
Lightninghawk, that's WAY cool! I'm gonna try that and the one that Catweasle mentioned, too. Maybe the best of both ideas would be a Desktop shortcut to a DOS batch program run full screen....hmmmmm.
-----------------------------Wizard----------------------------
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Windows tips 'n' tweaks Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC