Remove last few characters of a folder name
Posted on 2013-02-07
I found this script on this website to remove the last few characters of a file name but I was wondering if the same could be done for a folder name:
for %%F in (*.docx) do (
ren "%%F" "!fn:~0,-4!%%~xF"
Can it be changed to check a folder and rename all the sub folders by removing the last 7 characters?