c:\MyRoot\CopyCfgToSubs.bat
c:\MyRoot\My.config
c:\MyRoot\Mysub1\
c:\MyRoot\Mysub2\
c:\MyRoot\MysubN\
// What have I tried?
for /r "C:\MyRoot" %%f in (.) do ( copy "C:\MyRoot\a.config" "%%~ff" > nul )
cd \MyRoot for /D %x in (MySub*) do copy a.config %x
cd \MyRoot for /D %%x in (MySub*) do copy a.config %%x
%x
%%x
for /D %x in (MySub*) do echo copy a.config %x
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)