Solved How to apply batch changes to all subfolder files?

February 20, 2014 at 11:28:15
Specs: Windows 7
FOR %%a IN (*.jpg) DO (
SET Var=%%~na
CALL SET Var=%%Var:)=aaaa%%
CALL REN "%%a" "%%Var%%.jpg"
)

Im replacing all filename with an ) with aaaa using the above code. How can I alter the code to ensure it does it for all files inside subfolders as well
. Currently it only changes files in the folder from where the batch gets run. Thanks.


See More: How to apply batch changes to all subfolder files?

Report •


#1
February 20, 2014 at 14:14:17
✔ Best Answer
you might consider using a nested dir command, or a for /r

::mike


Report •
Related Solutions


Ask Question