- Mar 7, 2018
- 7
- 0
- 1
I have one directory with hundreds of sub and sub sub directories down the tree with a total number of text files over 22000 files. I need to copy one file with .qwz extension to every sub directory that contains text files. Copies of the .qwz file will be in the same number of existing text files in any sub directory and will be renamed in the same names of those text files.
Example: if a sub directory contains 200 text files, I need the generic c:\file.qwz to be copied in that sub directory 200 times and each file of those 200 files.qwz to be renamed the same names of the text files in the same sub directory.
This loop should be applied on any and every sub folder down the tree that contains text files only.
Can I get some precious assistance with this challenge please?
Many thanks in advance ..
Example: if a sub directory contains 200 text files, I need the generic c:\file.qwz to be copied in that sub directory 200 times and each file of those 200 files.qwz to be renamed the same names of the text files in the same sub directory.
This loop should be applied on any and every sub folder down the tree that contains text files only.
Can I get some precious assistance with this challenge please?
Many thanks in advance ..