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

Adding a command to a shortcut?

Oct 5, 2008 5:16AM PDT

Running Win Vista Home Premium SP1. Trying to create a shortcut to shutdown the computer.

Instructions: In the Create Shortcut dialog, "rundll32.exe user32.dll,LockWorkStation"...this works for locking down the desktop.

Further instructions: "You can repeat this exact process to create shortcuts to shutdown. In order to create a shortcut to shutdown, you can use the following command: shutdown -s -t 01."

How would this be written for it to work?

Here's what I did...rundll32.exe user32.dll,ShutdownWorkStation /shutdown -s -t 01...this gives an error stating "missing entry: Shutdown".

Discussion is locked

- Collapse -
Just shutdown with the right parameters.
Oct 5, 2008 5:21AM PDT

Exactly what you wrote. Not rundll etc, just what you wrote and no more (not even the full stop after the 01).

http://itsvista.com/2007/03/shutdown/ tells you what the switches mean: shutdown after 1 second.

Kees

- Collapse -
(NT) Thanks, that did it.
Oct 5, 2008 5:48AM PDT
- Collapse -
(NT) You're welcome.
Oct 5, 2008 5:49AM PDT
- Collapse -
Shutdown after 5 seconds and Restart?
Oct 6, 2008 4:40AM PDT

Now I'm trying to create a command to shutdown after 5 seconds and restart.

shutdown.exe /r /t05 is not working for me. How do I do this?