PDA

View Full Version : shut/reboot


vsd
03-02-2001, 05:58 PM
beginner.
are there any function/method for
shutting/rebooting/fastrebooting a Windows
Me system.
I´d like to write scripts for that.
Thanks in advance.

Adrian
03-02-2001, 06:15 PM
<font color=blue> You can make shortcuts on your desktop for one click shutdown and restart. and if you enable fast boot in your bios settings, your PC will boot a bit faster. If you want to know how to do these things, let me know. </font color=blue>

<font color=red> _____ _____ ____ </font color=red>
<font color=red> " Eat More Cheese " </font color=red>

vsd
03-02-2001, 06:49 PM
Yes, I´d like to know..

Thank you very much in advance.

Adrian
03-02-2001, 07:23 PM
<font color=blue> Ok basically to enable fast boot or quick boot you have dig around in your bios settings and search for that option and enable it.

One-click shutdown
On the desktop, right-click and go to New, then to Shortcut. (In other words, create a new shortcut.) Then on the following path name type:


C:\windows\rundll.exe user.exe,exitwindows


If the C: drive is not your local hard drive, then replace C with the correct letter of the hard drive.

One-click restart
On the desktop, right-click and select New, then Shortcut. (In other words, create a new shortcut.) Then on the following path name type in


C:\windows\rundll.exe user.exe,exitwindowsexec

For even better functions, you could also create a shortcut key under the Properties of the shortcut you just made. </font color=blue>


<font color=red> _____ _____ ____ </font color=red>
<font color=red> " Eat More Cheese " </font color=red>

vsd
03-03-2001, 09:55 AM
It´s very useful. Thanks again
a) C:\windows\rundll.exe user.exe,exitwindows . It works properly
b) C:\windows\rundll.exe user.exe,exitwindowsexec . It doesn´t work under Windows Me.

Regards

Adrian
03-03-2001, 02:44 PM
<font color=blue> Ok try these

fast restart that will close all programs and prompt you to log in again:

rundll32.exe shell32.dll,SHExitWindowsEx

total reboot:

rundll32.exe shell32.dll,SHExitWindowsEx 2

Use caution with the numbers. It's probably best to stick with 2 and 5. Neil tried the number 1 following SHExitWindowsEx, and powered down his machine so well that he had to unplug it and plug it back in again.


Remember, these DLLs were not meant to be tinkered with by the user, so use extreme caution and back up before you do anything.


If you don't want to risk it, you can always download <a target="_blank" href=http://www.zdnet.com/downloads/stories/info/0,,000DHW,.html>Shutdown Utility</a> 3.0. This freeware lives in the system tray instead of the desktop but all you need to do is install it and you can control all your shutdown options.



<font color=red> _____ _____ ____ </font color=red>
<font color=red> " Eat More Cheese " </font color=red>

vsd
03-03-2001, 04:39 PM
They work properly.

thanks.. regards

Adrian
03-03-2001, 08:11 PM
<font color=blue> Ok cool. <font color=blue>

<font color=red> _____ _____ ____ </font color=red>
<font color=red> " Eat More Cheese " </font color=red>

pillou
10-25-2001, 05:42 PM
Hi Adrian,
I see you know Windows Me but, do you the command line to do the same with Windows NT4 ?
(scripting shutdown)
Thanks

Smitty
10-27-2001, 08:57 AM
Pillou

Don't have WinNT
Don't script...

But noticed this surfing:

Walter Zackery posted a batch file to reboot Windows NT without the need to use the Resource Kit:
For NT only:
--------------------------------------------------------------
@ECHO OFF & cd/d %temp% & echo [version] > {out}.inf
(set inf=InstallHinfSection DefaultInstall)
echo signature=$chicago$ >> {out}.inf
echo [defaultinstall] >> {out}.inf
rundll32 setupapi,%inf% 1 %temp%\{out}.inf
del {out}.inf
--------------------------------------------------------------
This and other resources you may find useful

Rob van der Woude's Scripting Pages
<a target="_blank" href=http://www.robvanderwoude.com/index.html>http://www.robvanderwoude.com/index.html</a>

Regards

Smitty<P ID="edit"><FONT class="small">Edited by Smitty on 10/27/01 04:05.</FONT></P>