Question about shutdoen

  • Thread starter Thread starter Don J
  • Start date Start date
D

Don J

I've been using the program "sahutdown" to shutdown and restart my PC. The
line I've used in a batch file is:

shutdown -r 01

which worked very nicely up until about a year ago (about when I bought a
new copy of XP home). Since then it hasn't worked at all. Can anybody help
me?

Don J

---------------------------------------------------------------------------------------------
 
oops

You will need a space between the -t and 01

shutdown -r -t 01

For a list of the commands available open a command window and at the prompt
just enter shutdown (without any switches)

JS
 
You do need a batch file.

Note:
00 is 0 seconds. 01 is 1 second.

Shutdown & Reboot Shortcuts

Desktop Shutdown Shortcut
Right click the desktop | New | Shortcut | Create Shortcut Wizard opens |
Type or paste: %windir%\System32\shutdown.exe -s -t 00 |
Next | Type name like: SHUTDOWN | Finish | Right click the new shortcut |
Make sure Start in has: %windir%

Desktop Reboot Shortcut
Right click the desktop | New | Shortcut | Create Shortcut Wizard opens |
Type or paste: %windir%\System32\shutdown.exe -r -t 00 |
Next | Type name like: REBOOT | Finish | Right click the new shortcut |
Make sure Start in has: %windir%

Customize the icons
Right click each shortcut | Properties | Shortcut tab | Change Icon button

You can assign a Shortcut key...

1. Locate the program file (.exe) or the program's shortcut icon.
Right-click the program file or shortcut, and then click Properties.

2. Click the Shortcut tab.

3. With the cursor in the Shortcut key box, select the keyboard key you
want to use in combination with CTRL+ALT. Shortcut keys automatically start
with CTRL+ALT. The Shortcut key box will display None until you select the
key and then the box will display Ctrl+Alt+the key you selected. You cannot
use the ESC, ENTER, TAB, SPACEBAR, PRINT SCREEN, SHIFT, or BACKSPACE keys.

Note
Once you assign a shortcut key combination for a specific program, you will
not be able to use that key combination with other programs.

If you forget the key combination for your shortcut, you can follow steps 1
& 2 and review your shortcut keys.

Shortcut tab
Lists the shortcut name, target information, and shortcut key. Allows you to
choose the way the item is displayed when you open the shortcut: in a
standard window, a full screen (maximized), or as a button on the taskbar
(minimized). Also allows you to view the shortcut's target, change the icon
for the shortcut, and open a shortcut as a different user.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Don J said:
I've been using the program "sahutdown" to shutdown and restart my PC.
The line I've used in a batch file is:

shutdown -r 01

which worked very nicely up until about a year ago (about when I bought a
new copy of XP home). Since then it hasn't worked at all. Can anybody
help me?

Don J

--------------------------------------------------------------------------
-------------------
 
Works LIke a charm. Thanx!

Don J

------------------------------------------------------------------------------------------

JS said:
oops

You will need a space between the -t and 01

shutdown -r -t 01

For a list of the commands available open a command window and at the
prompt just enter shutdown (without any switches)

JS
 
Works great. The correct entry is:

shutdown -r -t 01

Many Thanx!

Don J

-----------------------------------------------------------------------------
 
There is no correct entry. t can be anything between 00 and 99.

-t xx Set timeout for shutdown to xx seconds

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Back
Top