|Thanks! It's running through all of my servers now, but errors out on mapping the drive. I can't seem to figure out how to pull that variable (%%f, or each server in txt file) into my mapping line.|
for /f %%f in (serverlist.txt) do (
net use x: \\<what do I need right here?>\c$ password /u:domain\username
xcopy c:\AAAIssues\test\ x:\test\ /s/e
net use x: /del
2. set server= and then put the word 'server' there
4. If I put a server name there, it will map to that server for each server in list.... obviously! ...but I wanted to see it run at least for each server in list so I know that part is working.
Thanks for the help! I'm still trying to learn.