- Joined
- Nov 23, 2007
- Messages
- 2
- Reaction score
- 0
Hi, wonder if anyone can help.
I need to copy a file to multiple folders. I have a parent folder X:\Documents with around 2000 account folders inside and I need to copy a template document to each of these folders.
I found a batch command yesterday that kind of did the job it was
For /R X:\Documents %a in (.) do copy C:\template.doc %a
I ran this and it worked so far as it copied the template to each of the user folders, however each of the account folders contained a subfolder called bills. X:\Documents\(account folder name)\Bills
The template was also copied to each of these bills folders.
So my question is how can I modify this command to copy the template just into each account folder?
I need to copy a file to multiple folders. I have a parent folder X:\Documents with around 2000 account folders inside and I need to copy a template document to each of these folders.
I found a batch command yesterday that kind of did the job it was
For /R X:\Documents %a in (.) do copy C:\template.doc %a
I ran this and it worked so far as it copied the template to each of the user folders, however each of the account folders contained a subfolder called bills. X:\Documents\(account folder name)\Bills
The template was also copied to each of these bills folders.
So my question is how can I modify this command to copy the template just into each account folder?