Hi,
now I got this script:

code:
  
$Path=("C:\Backup\Test\")
Enumdir("$Path")
;
Function EnumDir($p)
If not $p Return Endif
Dim $file
$file = Dir($p)
While $file <> "" and @Error = 0
If not ($file = "." OR $file = "..")
;
? $p +"\" +$file
;
If GetFileAttr($p+"\"+$file) & 16
EnumDir($p+"\"+$file)
EndIf
EndIf
$file = DIR()
Loop
Endfunction

Can you tell me how I must modify it for the filecopy e.g. that the files are renamed if existend?

regards
mike