re: Shutdown using batch file
Monday, December 3, 2001 at 9:20 am Windows 2000 Annoyances Discussion Forum
Posted by Vito Amato
(1 messages posted)
The following batch file, written by Walter Zackery, works for NT but I have not
tested it for 2k.
@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
The Resource Kit utility syntax is as follows:
Release 2.0 written by A. Blatzheim 1993 at Microsoft GmbH
Usage: SHUTDOWN [/?] [\\Computer] [/L] [/A] [/R] [/T:xx] ["Msg"] [/Y] [/C]
/? Shows the help screen.
\\Computer Specifies a remote computer to shutdown.
/L Specifies a local shutdown.
/A Abortes a system shutdown. This is only possible during the timeout period.
If this switch is used all others are ignored.
/R Specifies that the machine should reboot after shutdown.
/T:xx Sets the timer for system shutdown in seconds.[20 sec. default]
"Msg" Specifies an additional message.
/Y Answer all following questions with yes.
/C Forces running applications to close.
ATTENTION: If you use the /C parameter NT ignores the application's option to save
data which may have changed. You will see no File-Save dialog box because NT will
force the application to close. This will result in a loss of all data not previously
saved!!!
- Written in response to:
- Shutdown using batch file (Afzal Sher: Saturday, August 18, 2001 at 1:55 am)
Responses to this message:
|
|
All messages in this thread [show all]
 |  | re: Shutdown using batch file (Vito Amato: Mon, Dec 3, 2001, 9:20 am) |
| |
| |
| |
Return to the Windows 2000 Discussion Forum
|
|