It isn't deleting the files - it's moving each source file to the same destination file!

Don't you need to increment the sequence number or something, so each destination has a unique name?

Replace your Move... command with the following and view what's happening. You'll probably see an obvious problem...

 Code:
'Move  ' $path + "\" + $file ' ' $archive + "\" + @wksta + "_prod_" + $moddate + "_" + $modtime + "_foolog_0000.csv"


Glenn
_________________________
Actually I am a Rocket Scientist! \:D