Batch script

Man of Honour
Joined
17 Nov 2003
Posts
36,747
Location
Southampton, UK
I need a batch script that can input the contents a file for a variable.

Computers.txt
Computer1
Computer2
Computer3

Loop
Code:
psshutdown -k -f -c -t 200 %variable% -m "Press cancel if you are still working"

I just need the syntax to input the variables and iterate.

Thanks

Burnsy
 
Back
Top Bottom