Hi
Env = Win2k pro in NT4 Domain
I am trying to reboot a computer as part of an automated unattended install of Win2000 Pro.
I have got got hold of a bunch of files one of which is called "Restart.VBS" and I call this up just by referencing the name in a batch file.
The file contains the following syntax.
set WshShell = CreateObject("WScript.Shell"
WshShell.SendKeys "^{ESC}ur{ENTER}"
The problem is that it doesn't reboot the computer when called up within the batch file. If I just double click on it or type "restart" at the CMD prompt from the directory in which it exists it does what it is supposed to and performs the restart.
Am I calling it up incorrectly, usng the wrong switches or something?
Any help would be greatly appreciated
Env = Win2k pro in NT4 Domain
I am trying to reboot a computer as part of an automated unattended install of Win2000 Pro.
I have got got hold of a bunch of files one of which is called "Restart.VBS" and I call this up just by referencing the name in a batch file.
The file contains the following syntax.
set WshShell = CreateObject("WScript.Shell"
WshShell.SendKeys "^{ESC}ur{ENTER}"
The problem is that it doesn't reboot the computer when called up within the batch file. If I just double click on it or type "restart" at the CMD prompt from the directory in which it exists it does what it is supposed to and performs the restart.
Am I calling it up incorrectly, usng the wrong switches or something?
Any help would be greatly appreciated