cmd - Command line to change file extension of all files under a folders and its subfolders -
i looking command line can change file extension of files under folder , subfolders. there way this?
i tried ren *.js *.txt
changes file extension of files under 1 folder.
i assume ms-dos mean command prompt on windows. not many people still use ms-dos.
the following run ren command on each folder within hierarchy contains .js files. bit more efficient running ren each file individually.
for /r %f in (.) @if exist "%f\*.js" ren "%f\*.js" "*.txt"
double percents (%f
becomes %%f
) if run within batch script.
Comments
Post a Comment