|
-
December 7th, 2001, 09:51 AM
#1
Registered User
Command Line Shut Down??
Command Line Shut Down??
is there such a thing??
can anyone help??
-
December 7th, 2001, 11:13 AM
#2
Registered User
Try the <a href="http://www.winguides.com/registry/display.php/900/" target="_blank">WinGuides</a> solution. It's a lot like <a href="http://forums.windrivers.com/cgi-bin/forum3/noncgi/ultimatebb.php?ubb=get_topic&f=12&t=000146" target="_blank">this thread</a>.
Win9x/ME only.
I'm out looking for a Win2000 solution.
-
December 7th, 2001, 11:20 AM
#3
Registered User
I'm guessing Sutdown.exe is the only alternative for WinNT/2000 machines.
From the Net:
[quote]The Shutdown utility has several options, including rebooting or just shutting down, local or remote NT machines, the length of time before rebooting, whether or not to allow applications the chance to save work, etc. See the second page of this article for the exact syntax. I created a small batch file called "reboot.cmd" in notepad, using the appropriate switches, so that I didn't accidentally leave anything out. Here are the contents of that file:
shutdown /L /R /Y /C
When run, this command file will reboot (/R) the local machine (/L) answering "Yes" (/Y) to the question "Are you sure you want a shutdown?[Y/N]" that appears normally when executing the shutdown.exe command. It will also force all open applications to close (/C), without the opportunity to save any work. This is OK as far as I'm concerned, because I'm going to close all applications and log out before I go home, after scheduling this command file.
To schedule this command file, I open a command prompt, and type:
at 23:00 "c:\reboot.cmd"
This will cause my machine to execute my reboot.cmd file above, at 11:00 PM. It will display a warning message on the console screen, and count down 20 seconds (the default) before shutting down and restarting. Of course, my Schedule service needs to be running in order for the AT command to work. If I wanted, I could get fancier and use the "Net stop" command with the AT command to stop some services manually just before the reboot, so that I could determine the order and timing of stopping the services.
<hr></blockquote>
Hope this helps!
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. -Douglas Adams
-
December 7th, 2001, 11:21 AM
#4
Registered User
perhaps i'm wrong in asking, but why would you want a shut down on a dos machine, is hitting the on/off button that difficult? or for rebooting ctrl-alt-del to complex?
-
December 7th, 2001, 12:13 PM
#5
Registered User
just curious...after reading the last thread that is
-
December 17th, 2001, 02:05 AM
#6
Registered User
[quote]Originally posted by Chris MacMahon:
<strong>perhaps i'm wrong in asking, but why would you want a shut down on a dos machine, is hitting the on/off button that difficult? or for rebooting ctrl-alt-del to complex?</strong><hr></blockquote>
you will be amazed on the number of people who find it extremly difficult...
-
December 18th, 2001, 02:11 PM
#7
so you've written this fantasic batch file that updates all the software on 1000's of machines. only now you have to go and turn off/restart each one.
even if it's just one machine it makes it seem more professional to complete the job.
-
December 19th, 2001, 08:24 AM
#8
Registered User
[quote]Originally posted by Chris MacMahon:
<strong>perhaps i'm wrong in asking, but why would you want a shut down on a dos machine, is hitting the on/off button that difficult? or for rebooting ctrl-alt-del to complex?</strong><hr></blockquote>
it is not either....just trying to see if anything is possible
to expand the mind is to become more marketable
-
December 19th, 2001, 06:17 PM
#9
I couldn't find a shutdown but there is a reboot
<a href="http://www.simtel.net/pub/msdos/" target="_blank">http://www.simtel.net/pub/msdos/</a>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks