Maintain File Path Structure
Posted: 20 Sep 2010 06:59
I have a single directory with multiple sub-directories and I want to copy all the "*.user" files within the sub-directories into a new main directory. I found the code to that except that I have to both maintain the original file path structure as well as change one of the folder names in it.
Here is an example:
Original File - D:\Projects\APPS\Branch1\Project1\MyFile.user
What I want it to be copied to - D:\Projects\APPS\Branch2\Project1\MyFile.user
The "Project1" path can be a single level or have further sub-directories after it.
Any help on this would be greatly appreciated.
Here is an example:
Original File - D:\Projects\APPS\Branch1\Project1\MyFile.user
What I want it to be copied to - D:\Projects\APPS\Branch2\Project1\MyFile.user
The "Project1" path can be a single level or have further sub-directories after it.
Any help on this would be greatly appreciated.