Batchscript that will look in a file to retrieve server names...
Posted on 2006-10-30
How can I run this batchscript that will look in a file for server names rather than using the for loop?
for %%J in ( Server1 Server2 ) do CALL :copynext %%J
:: %1 comes from the call line, not the command line
ECHO Running Dumpsec: %srvnme%
ping -n 10 \\127.0.0.1 >NUL
dumpsec /rpt=rights /saveas=csv /outfile=%srvnme%.txt /computer=%srvnme%