1.

Solve : Copy specific list of folders with files from one location to anather?

Answer» HELLO all,

I need help in copying a list of directories / folders from one location to  another  (let say from D: to E: or D:\ToCopy to e:\Copied).


* I have list of folders.
* I need the folders copied to be in same structure as in source.


look into xcopy or robocopy.  If you format your list on lines in a text file, you will also want to fermiliarize yourself with 'for /f'.  You will use this to loop through each LINE of your file.

Code: (psudo-code) [Select]for /f "DELIMS=" %%A in (list.txt) do xcopy "D:\ToCopy\%%A" "E:\Copied\%%A"

%%A WOULD be %A if you are running outside of a BATCH file.


Discussion

No Comment Found