i have a bunch of files on F: drive. There are many subfolders. i have one file called 'F:\master' whos data i want to copy to another file within the subfolders having some unknown name- the only thing i know is the suffix of the file name. so i have folders a, b, c, d, and so on. within each folder are a bunch of files named whatever. for every .txt file in the subfolders i want to copy the file 'master' to.
for example in folder 'a' if i have file named 'hello.txt', what i want to happen essentially is 'copy F:\master F:\a\hello.txt'. If i do a 'dir F:\a\*.txt' and find it has 100 files called hello1.txt, hello2.txt and so on then i need 'copy f:\master f:\a\hello1.txt' and to hello2.txt hello3.txt and so on.
how can i accomplish this?
thanks.
for example in folder 'a' if i have file named 'hello.txt', what i want to happen essentially is 'copy F:\master F:\a\hello.txt'. If i do a 'dir F:\a\*.txt' and find it has 100 files called hello1.txt, hello2.txt and so on then i need 'copy f:\master f:\a\hello1.txt' and to hello2.txt hello3.txt and so on.
how can i accomplish this?
thanks.
My Computer
At a glance
Windows 7 x64, ultimate/pro/home, SLES x86 & ...intel & amdyesgtx970
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- homebuilt & dell & sgi
- OS
- Windows 7 x64, ultimate/pro/home, SLES x86 & ia64
- CPU
- intel & amd
- Motherboard
- yes
- Memory
- yes
- Graphics Card(s)
- gtx970
- Sound Card
- same as memory
- Monitor(s) Displays
- benq 27"
- Screen Resolution
- 2560*1440
- Hard Drives
- many