samiam41
asked on
Copy one file to multiple directories w/ batch file
Greetings Experts. I have a spreadsheet that needs to be copied to a set of top level folders but not the sub-folders. Having most of my experience in scripting coming from batch files, please aim your response in that direction.
file A needs to go to folders A-Z:
FolderA [yes]
--sub folderA [no]
Folder B [yes]
--sub folderB [no]
I asked a similar question before on here but can't find it nor the solution. I appreciate your time and help with this one!!
file A needs to go to folders A-Z:
FolderA [yes]
--sub folderA [no]
Folder B [yes]
--sub folderB [no]
I asked a similar question before on here but can't find it nor the solution. I appreciate your time and help with this one!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Experts. Testing now.
ASKER
One line of code and the task was finished. I appreciate everyone's help and look forward to working with you all again soon. Thanks.
Glad to help.
CD \
cd \to folder where your spreadsheet is
copy spreadsheet.xls c:\foldera\spreadsheet.xls
copy spreadsheet.xls c:\folderb\spreadsheet.xls
etc
etc
etc
copy spreadsheet.xls c:\folderz\spreadsheet.xls
EXIT