Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Shutdown & Restart Shortcuts

Dec 11, 2003 4:17AM PST

I just went to XP from Win98SE, not an upgrade but a full new install on a newly FDISK'd HHD on a newly built computer. On my old 98 computer/desktop I had a shortcut for shutdown and another for restart. I found them to very convenient, and much preferable to the Start menu procedure.

Will these same command lines for 98 work with XP? They were:

Restart:
C:\WINDOWS\RUNDLL.EXE SHELL32.DLL,SHExitWindowsEx2

Shutdown:
C:\WINDOWS\RUNDLLUSER.EXE,ExitWindows

If not, are there different shortcut command lines that will work in XP. Version is Home Edition. Would it make a difference if I went to XP Pro?

Thanks,

G.F.K.

Discussion is locked

- Collapse -
Re:Shutdown & Restart Shortcuts
Dec 11, 2003 6:41AM PST

I would look for SHUTDOWN.EXE and REBOOT.EXE on www.google.com Add the keyword XP.

Bob

- Collapse -
Re:Shutdown & Restart Shortcuts
Dec 11, 2003 1:15PM PST

the commands you describe are DOS commands created via desktop.

as far as I know XP does not support this.

you may try the commands in your command prompt screen which you can access by going to start>programs>accessories>commandprompt

you will now get a small black screen which allows you to execute commands like ipconfig and sfc/scannow.

david williams

- Collapse -
Re:Shutdown & Restart Shortcuts- take a look here....
Dec 11, 2003 1:38PM PST
http://aumha.org/win5/a/shutcut.php

For shutdown, I use: %windir%\System32\Shutdown.exe -s -t 01 which differs somewhat from what's in the above link, but it points to 'shutdown.exe' also. Hope this helps.
- Collapse -
Re:Shutdown & Restart Shortcuts..This is what I use...
Dec 11, 2003 10:14PM PST

XP Shutdown.exe or Restart.exe

In Windows XP, restoring the shortcut is amazingly easy. Right-click on the Desktop and choose New | Shortcut from the pop-up menu. Browse to the file C:\Windows\ System32\Shutdown.exe, click Next, name the shortcut, and click Finish. Now right-click on the new shortcut and choose Properties. In the Target box, append the command line switch -l (to log off), -s (to shut down), or -r (to reboot).

If you also add the switch ?t xx (where xx is a number of seconds), Shutdown.exe will display a warning and count down the specified number of seconds before activating. You can specify a comment to be displayed with the warning by adding the switch -c "Your text". The countdown behavior is particularly useful if the shutdown program is launched through the Scheduled Tasks applet. For example, a library computer might be scheduled to shut down 10 minutes before closing, with a 60-second warning. Once the countdown has begun, the only way to stop it is to launch the program again with the -a (for abort) switch on its command line.

C:\WINDOWS\system32\shutdown.exe -s -t 04 -c "Windows XP Shut down: My PC"

For Restart instead of the -s switch change it to a -r switch as follows:
C:\WINDOWS\system32\shutdown.exe -r -t 03 -c "Windows XP Re-Start: My PC"

I can then use Scheduled Tasks to shutdown or reboot pn a specific time.

It does shutdown completely on my PC.

Have fun...

- Collapse -
I FOUND A VERY SIMPLE SHORTCUTS
Dec 12, 2003 3:27AM PST

David:

Thank you for your response. I tried them and they worked, BUT automatically created a delay before shutting down that I could not find a way around.

I did however, find other shortcuts that are very simple to create and work flawlessly. Here is a link:

http://www.certificationsuccess.com/index.cfm?pageid=322&siteid=1

My thanks to all who responded. I appreciate you taking the time to help.

G.F.K.