david carvalho wrote:
> I'm using a dos shell script to remotely shutdown my workstations
> daily with the command:
>
> shutdown /s /m \\ip.address /t 60 /d 0:0 /c "daily shutdown".
>
> The problem is that I one line for each workstation, and if one of
> them is off, or not connected at that time, the script has to wait
> before shuting down the next.
> Is there a way of doing this simultaneausly?
Nipi wrote:
> What is the /f in front of "for", is it what it tells the batch not
> to wait for each workstation?
for /f --> command to process files line-by-line
/F breaks up the line at each blank space, and any blank lines are
skipped...
See:
http://www.ss64.com/nt/for_f.html
The 'start' is what opens up a new process for each new line - thus there is
no waiting - as you have generated a new process for each entry in the text
file.
--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html