Improve company productivity with a Business Account.Sign Up
set ServerList=\\192.168.0.2 \\192.168.0.99
set FolderList=sw hw
for %%a in (%ServerList%) do (
for %%b in (%FolderList%) do (
robocopy.exe "%%~a\Script\%%~b" "%DestFolder%\%%~b" /e /r:0 /w:0
Open in new window
for %%a in (sw hw) do (
robocopy.exe "\\192.168.0.2\Script\%%a" "C:\CSV\%%a" /e /r:0 /w:0
Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.