I need to copy all files from one folder hierarchy to an other.
An example:
My source is in 'c:\1' which has a number of subfolders, some of which have subfolders, etc. Along the lines of:
c:\1
c:\1\a
c:\1\b
c:\1\b\1
c:\1\c
c:\1\c\1
...
All files have to be copied to 'c:\2' and go to the same folder as they come from. If the folder does not exist it should be created.
Is there an easy way to do this, or do I have to loop through all folders and subfolders, and do them one at a time?
/Soren
An example:
My source is in 'c:\1' which has a number of subfolders, some of which have subfolders, etc. Along the lines of:
c:\1
c:\1\a
c:\1\b
c:\1\b\1
c:\1\c
c:\1\c\1
...
All files have to be copied to 'c:\2' and go to the same folder as they come from. If the folder does not exist it should be created.
Is there an easy way to do this, or do I have to loop through all folders and subfolders, and do them one at a time?
/Soren