mystikal1000
asked on
Script to Copy Files/Folder in a directory - Batch Script
I need help asap.
I need a script that will copy a folder and any file/subdirectory below it to a destination folder for multiple server names. I want the script to look at a servers.txt file of all servers and then perform its copy for each server name specified in the TXT file.
Source: \\server1\apps\logs\
Destination: c:\apps
After its done copying, I want the destination folder to be named the server name.
I will reward points asap!
Thanks
I need a script that will copy a folder and any file/subdirectory below it to a destination folder for multiple server names. I want the script to look at a servers.txt file of all servers and then perform its copy for each server name specified in the TXT file.
Source: \\server1\apps\logs\
Destination: c:\apps
After its done copying, I want the destination folder to be named the server name.
I will reward points asap!
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The above script will create a new sub-directory for each server listed in servers.txt.