cmd shell copy
Posted on 2014-08-09
I have a batch file that copies some files on the network, but its not behaving the same way with files on network drives as it does on test folders on my local machines:
copy \\Share\file.out + \\Share\*.txt \\Share\file.out
what I expect to see is that all the txt files appended to file.out, but what I see is that the contents of file.out is duplicated 1 time in file.out for each time the file runs. In short file.out is being appended with "file.out + *.txt" not replaced with ?