Batch file Copy Folder specified in a .txt file

江枫思渺然 提交于 2019-12-11 05:26:03

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!