Saved Bookmarks
| 1. |
Solve : Copy file to multiple folders? |
|
Answer» DEAR All, I have a file that need to be coppied to multiple foldeers, for example my source file is 'd:\aldo\test.txt' I need this 'test.txt' to be copied and replaced to 'd:\toby\test.txt' ; 'd:\vero\test.txt' ; so on The DESTINATION FOLDERS are at the same drive but different folder's name. Does anyone know how to solve this using batch file? Thanks before.A couple of ways: Code: [SELECT]copy d:\aldo\test.txt d:\toby copy d:\aldo\test.txt d:\vero copy d:\aldo\test.txt d:\doublexaa copy d:\aldo\test.txt "d:\My Documents"Or Code: [Select]set Destinations=d:\toby d:\vero d:\doublexaa "d:\My Documents" for %%a in (%Destinations%) do copy d:\aldo\test.txt %%aI included an example with a space in it so you could see that you need to use quotes if there will be spaces in the path.Thanks, It works PERFECTLY.... |
|