Thanks for taking the time and feedback. No it’s not a homework! LOL.. it’s related to movie library I’m putting together and this is one part of it. I been experiment with batch files and command line.. the closest one I came across work partially but it was intended to work with existing files and not to create one from scratch!
I'm using a batch file (file.bat)
This is the command line in the batch file..
for /f "delims=" %%i in (filelist.txt) do echo D|xcopy "%%i" "c:\myfiles\%%i" /i /Z /y
This is what's happening when I run the batch file...
C:\myfiles>files.bat
C:\myfiles>for /F "delims=" %i in (filelist.txt) do echo D | xcopy "%i" "c:\myfiles\%i" /i /Z /y
C:\myfiles>echo D | xcopy "Hello Joe" "c:\myfiles\Hello Joe" /i /Z /y
File not found - Hello Joe
0 File(s) copied
C:\myfiles>echo D | xcopy "Good morning" "c:\myfiles\Good morning" /i /Z /y
File not found - Good morning
0 File(s) copied
C:\myfiles>echo D | xcopy "Yesterday was the first" "c:\myfiles\Yesterday was the first" /i /Z /y
File not found - Yesterday was the first
0 File(s) copied
C:\myfiles>echo D | xcopy "Today the 2nd" "c:\myfiles\Today the 2nd" /i /Z /y
File not found - Today the 2nd
0 File(s) copied
C:\myfiles>echo D | xcopy "Tomorrow the 5th" "c:\myfiles\Tomorrow the 5th" /i /Z /y
File not found - Tomorrow the 5th
0 File(s) copied
C:\myfiles>
Hope this helps...
