Speed
09-21-2000, 10:09 PM
... Restarting the computer? I have a program that Im kinda making and at the end I need for it to restart my computer and I dont know how to do this. someone please help.
Thanks.
Thanks.
| //flex table opened by JP
Click to See Complete Forum and Search --> : Does NE1 Know The Command Line for.... Speed 09-21-2000, 10:09 PM ... Restarting the computer? I have a program that Im kinda making and at the end I need for it to restart my computer and I dont know how to do this. someone please help. Thanks. OuTpaTienT 09-21-2000, 11:24 PM Are you talking about a true "command line"? As in DOS? Or do you want to restart Windoze? For a command line I have a couple tiny files that I've had on my system even since I've first owned a computer (over 10 years!). They are CB.EXE and WB.COM and they will Coldboot or Warmboot the system via command line. Since they are so small (zipped together less than 1k) I put them on my web page if you want to snag them and use them. http://members.home.net/0utpatient/stuff/boots.zip [This message has been edited by OuTpaTienT (edited 09-21-2000).] howste 09-22-2000, 12:21 AM Here's some codes that will do what you need: Reboot: RUNDLL.EXE User.exe,exitwindowsexec Or you can use this one to reboot in a batch file if you need the path included: %WINDIR%\RUNDLL.EXE User.exe,exitwindowsexec Shutdown: RUNDLL32.EXE User.exe,ExitWindows Or %WINDIR%\RUNDLL32.EXE User.exe,ExitWindows Steve SysOpt.com
Copyright Internet.com Inc. All Rights Reserved. |