reboot using a batch file?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: ib_redbeard (ibredbeard_at_discussions.microsoft.com)
Date: 12/30/04


Date: Thu, 30 Dec 2004 06:59:02 -0800

I wanted to reboot a bunch of computers on my domain, and thanks to a
previous post, I found the command:
for /f %x in (machines.txt) do shutdown /m \\%x /r /t 0 /f

Its works perfectly when I inmput it directly the command prompt, but when I
have that in a batch file, it doesn't work. It gives me "-t was unexpected
at this time." I'v etried different things but can't get it to work. Any
idea how to get this to work in a batch file as it does when diectly inputted
into the command prompt? Thanks



Relevant Pages

  • Release : ComLog 1.0, a WIN32 command prompt logger
    ... a WIN32 command prompt logger ... DOS sessions on Windows NT/2K (should also work on XP, ... This tool can be used by administrator to keep a history of commands ... typed in the DOS command prompt and the associated output, ...
    (Focus-IDS)
  • [Full-Disclosure] Release : ComLog 1.0, a WIN32 command prompt logger
    ... a WIN32 command prompt logger ... DOS sessions on Windows NT/2K (should also work on XP, ... This tool can be used by administrator to keep a history of commands ... typed in the DOS command prompt and the associated output, ...
    (Full-Disclosure)
  • Re: How do I launch MS-DOS prompt to execute a batch file from within Excel worksheet with /VBA?
    ... You've asked for a command prompt from VBA. ... that in order to run your batch file. ...
    (microsoft.public.excel)
  • Re: Batch File Problem
    ... > access rights were set via Security and tested using Windows Explorer. ... > batch file is using xcopy and the manual copy used copy. ... There is no difference between running a command from the ... Command Prompt or running it inside a batch file. ...
    (microsoft.public.windowsxp.general)
  • Re: Batch File Problem
    ... >> batch file is using xcopy and the manual copy used copy. ... >There is no difference between running a command from the ... >Command Prompt or running it inside a batch file. ...
    (microsoft.public.windowsxp.general)