Rob van der Woude's Scripting Pages

Solutions found in alt.msdos.batch

and alt.msdos.batch.nt

Reboot Windows NT

(without the need to use the Resource Kit)

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

MAVE <> wrote in message
: I want to restart my NT4.0 with a batch file. How can I do it.
: With rundll32.exe shutdown /l /y /r dont run!
: Thanks


More information on .INF files:



page last uploaded: 2015-08-24, 21:09