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%