i need copy file , paste inside "resources" folder reside in 50 different folders different names.
using auto hot key 1 option don't want use that. can use batch script extract directory structure , paste folder same title.
for /d %%a in ("c:\class 1\*.*") xcopy /y /d c:\test\work.txt "%%a\" using script option here have manually enter directory of destination each time. there possibility automate this?
try this:
for /f "delims=" %%a in ('dir /ad /b /s ^| findstr /eir "\\resources"') xcopy /ydi c:\test\work.txt "%%~a" code vista:
for /f "delims=" %%a in ('dir /ad /b /s ^| findstr /eir "\\\\resources"') xcopy /ydi c:\test\work.txt "%%~a"
Comments
Post a Comment