Dear Friends,

I want to copy all files and all sub directories to a new path.

From :- mysite/allfiles_folders/.
To :-mysite/Copy_here/.

I mean like winNT command Xcopy mysite/allfiles_folders/ mysite/Copy_here/ /s

this command copy all files and all sub directores and their sub and so on to the new path.

i have try by using exec("Xcopy mysite/allfiles_folders/ mysite/Copy_here/"); but its shows nothing

OS win 2000. PHP IIS

1- Any PHP Script to copy all files and sub Directores ?
2- how can we run exec function to copy?

Regards,
Imran Khalid
imranlink@hotmail.com

    1) One could adapt the directory listing script shown on the [man]readdir[/man] page to make directories and copy files
    2) Windows uses \ to separate directory names, not /

      Write a Reply...