Raven
December 7th, 2001, 09:51 AM
Command Line Shut Down??
is there such a thing??
can anyone help??
is there such a thing??
can anyone help??
|
Click to See Complete Forum and Search --> : Command Line Shut Down?? Raven December 7th, 2001, 09:51 AM Command Line Shut Down?? is there such a thing?? can anyone help?? Stalemate December 7th, 2001, 11:13 AM 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. Stalemate December 7th, 2001, 11:20 AM 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! Chris_MacMahon December 7th, 2001, 11:21 AM 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? Raven December 7th, 2001, 12:13 PM just curious...after reading the last thread that is Gabriel December 17th, 2001, 02:05 AM [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... xt477 December 18th, 2001, 02:11 PM 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. Raven December 19th, 2001, 08:24 AM [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 Eagle PC Diagnostech December 19th, 2001, 06:17 PM 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> windrivers.com
Copyright WebMediaBrands Inc., All Rights Reserved. |