2017年4月28日 星期五

Batch: Copy a list (txt) of files , copy the files only on txt list

http://stackoverflow.com/questions/6257948/batch-copy-a-list-txt-of-files

@echo off
set src_folder=c:\whatever
set dst_folder=c:\target
for /f "tokens=*" %%i in (File-list.txt) DO (
xcopy /S/E "%src_folder%\%%i" "%dst_folder%"
)

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。