Xcopy script, only copy a file once?

Page 2 - Seeking answers? Join the Tom's Hardware community: where nearly two million members share solutions and discuss the latest tech.

Catsrules

Distinguished
Dec 6, 2008
689
0
19,060
I need to make a scrip that will only copy a file once. Then if that file is deleted from the destination and the script is run again, it will ignore that file, and move on to the next.

Any Ideas?
 


Yeah I don't know how to fix that problem, right now I have it set so it copy at night when there isn't any tv shows to record, so hopefully that will not be a problem.

Thanks it is my first program so far. :)
 
Wow for a first it's pretty good, I've been doing dozens of programs using BATCH and PERL, but still you solved it yourself while I couldn't help you out. ^^

Got an idea about the file copy process when it's recording: just move files prior to filecopy. It takes seconds to do it, but will prevent mistakes from happening. Do something like:
Code:
move "C:\Users\Public\Recorded TV\*.wtv" "C:\Users\Public\Recorded TV - files to convert\*.wtv"
then follow with your other lines using this new folder. It's the only idea I came with but it will work without being a torture to do and it could record while the copy process is working overnight ^^