Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

restart batch file not working . . .

Status
Not open for further replies.

Pinkman

MIS
Aug 18, 1999
65
US
I am running NT Server 4 SP5 and have written a simple AT batch file for this purpose.&nbsp;&nbsp;But when the batch file executes it prompts with a [y] or [n] to reboot and waits for a user command.&nbsp;&nbsp;<br><br>What is the syntax to get the prompt off??<br><br>Thanks for any responses,<br>Pinkman
 
What command are you using to do the restart?&nbsp;&nbsp;If you are using the shutdown command that comes with the Resource Kit, then its /Y.
 
If what tajenkins suggests does not work, you can pass a Y to the command with (minus the quotes of course) - &quot;echo Y¦&lt;command_to_run&gt;&quot;.<br><br>That works with some commands, you might try that also.<br><br>Hope this helps,<br>Paul Kincaid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top