I'm trying to create a Batch (CMD) in Windows that "sweeps" folders in a certain directory and then renames the sub-folders according to a criteria I set.
I'm using the code below to perform the operation (detail: this code I found on the internet and made some small adjustments).
FOR /D %%D IN (C:\Users\meuUsuario\Desktop\Music\*) DO CALL :RENAME "%%D"
pause
:RENAME
SET CRITERIA=\"(Músicas)"
FOR /D %%R IN (%1%CRITERIA%) DO RENAME %%R "(Singles)"
If I change my criteria to some folder that the nomenclature does not have accentuation, it works normally.
I have been able to solve this for a while, but it's difficult ...