batch file to copy to many folders

Lenovo laptop / T61P
January 13, 2009 at 09:24:15
Specs: Windows Vista, Intel core 2 duo T7300@2.00 GHZ and 2.00 GB
I am curious to find out how this can be done with a batch (.bat) file on Vista. I need to be able to copy two folder files into numerous folders all on a mapped drive at W. The folders are named based on the clients name, which means the names are like aaa acctg, a&e inc, bat inc and so on. How do I make it so the batch file copies the folders from my c drive into all the folders on the w drive and not overwriting any existing information within the folders on the W drive already.

See More: batch file to copy to many folders

Report •

January 13, 2009 at 10:52:35
@echo off
pushd w:\
for /d %%b in (*) do echo n|copy /-y "c:\batch\folder1\*.*" "%%b"

tested on xp, dunno about vista. modify the code for folder 2.

Report •
Related Solutions

Ask Question