Copy file W/ folder structure from network with a list?
I am trying to write a batch file to copy a file to multiple servers (networked locations) from a network location with a specfic folder structure from a .txt file or some sort of list.
So something like
Xcopy \\SERVER\Folder1\folder2\FILE.DOC "***\\SERVERS_PULLED_FROM_LIST***\share\information spacing spacing\File.DOC"
\\SERVERS_PULLED_FROM_LIST=ServerList.txt
...Any thoughts I seem to be having issues because of network locations...UGH!!!!
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
mattski
11 years ago
try these methods...
powershell script: http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/27/use-powershell-to-copy-files-to-a-shared-drive.aspx
robocopy.exe: http://ss64.com/nt/robocopy.html
Comments:
-
Thanks, I will take a look through that stuff I found some similar forums, but no success yet... - 56kGhost 11 years ago