For Loop Using Text File As Input Problem
Posted: 21 Jun 2010 04:35
I have a text file (SingleFilesList.txt) listing a
series of files including their path in the form
T:\A test directory\3\E\0\123456789.jpg
T:\A test directory\3\F\5\123456790.jpg
T:\A test directory\F\1\2\123456789.jpg
I would like to copy all the files listed into one
folder. I have used at the DOS command
prompt:
For /F "tokens=*" %K in (SingleFilesList.txt)
Do Copy "%K" V:\Test\
No errors are generated but files are not
copied to V:\Test. Please can anyone
suggest where I am going wrong?
series of files including their path in the form
T:\A test directory\3\E\0\123456789.jpg
T:\A test directory\3\F\5\123456790.jpg
T:\A test directory\F\1\2\123456789.jpg
I would like to copy all the files listed into one
folder. I have used at the DOS command
prompt:
For /F "tokens=*" %K in (SingleFilesList.txt)
Do Copy "%K" V:\Test\
No errors are generated but files are not
copied to V:\Test. Please can anyone
suggest where I am going wrong?