Tuesday, February 11, 2020

Windows batch processing of file names in a text file

The following script loops through copy.txt file's content (1 file name per line), then copies each file to D:\tmp\:

@echo off
for /F %%a in (copy.txt) do copy "%%a" D:\tmp\


No comments:

Post a Comment