For starters, I notice your loop is incorrect. You have $num = 0 then $num < 6 but your array is 1 -> 6
So 0 is a false array item, and 6 is never seen.
It should be
$num = 1;
while ($num <= 6)
(Just noticed that you increment $num first to avoid the 0, but 6 would still never been seen using less than.)
Other than that, I have to assume that $WINDIR and $archive_dir are correctly defined and not causing problems with slashes. Is copy() returning any errors?