fzssyv
Programmer
- Dec 16, 2002
- 1
What I am looking to do is to flatten the entire directory structure and rename the files to be distinct according to a naming convention. Typically what I have to work with is:
MasterDirectory
SubDir1
File1 ... FileX
SubDir2
File1 ... FileX
etc. (for a number of subdirectories)
I need to name the files as MasterDirectory-SubDir#-File# and put them all in the MasterDirectory.
Also, for an added twist, I also need to be able to do this where there is another directory under the SubDir# as well. Thanks for any help anyone can provide me on this.
-Scott
MasterDirectory
SubDir1
File1 ... FileX
SubDir2
File1 ... FileX
etc. (for a number of subdirectories)
I need to name the files as MasterDirectory-SubDir#-File# and put them all in the MasterDirectory.
Also, for an added twist, I also need to be able to do this where there is another directory under the SubDir# as well. Thanks for any help anyone can provide me on this.
-Scott