问题
I'm looking for batch file code that will copy folders specified in a text file.
So in the text file
C:\User\
C:\Random\Random\Random
and so on.
The destination will be set at N:\Backups\PC
Thanks
回答1:
set dest=N:\Backups\PC
for /f %%i in (C:\dirs.txt) do copy "%%i" %dest%
来源:https://stackoverflow.com/questions/11190176/batch-file-copy-folder-specified-in-a-txt-file