how do you rename a file or a dir or a string name to be lowered?
Posted: 25 Sep 2024 00:12
https://mega.nz/file/HcgTVDbY#pkPHdT5Vt ... QOsPAm2_eY
i made a context menu entry "DO lower case"
if i RIGHT-click on a LNK file name or a LNK dir name or an explorer's file name or an explorer's dir name, you can also get an entry "DO lower case" included in as a possible choice as it can be seen on the link posted above
"DO lower case" will trigger to run one of "Context Menu - DO lowercase - Dir.bat" or "Context Menu - DO lowercase - File.bat"
"Context Menu - DO lowercase - Dir.bat" has the content below
@ECHO OFF
SET Rename_string2lowercase="%~1"
FOR /F "Tokens=*" %%V in ('DIR /L /B %Rename_string2lowercase%' ) DO (rename "%%V" "%%V")
it must not do whole directory branches or a list of all files in the current directory. it must change only one targeted string name
PS)
later i kind of fixed it, dumb of me i did it on exFAT
it didnt work on LNK files
i still have a problem renaming a directory, the rename command seems to only work on files.
i made a context menu entry "DO lower case"
if i RIGHT-click on a LNK file name or a LNK dir name or an explorer's file name or an explorer's dir name, you can also get an entry "DO lower case" included in as a possible choice as it can be seen on the link posted above
"DO lower case" will trigger to run one of "Context Menu - DO lowercase - Dir.bat" or "Context Menu - DO lowercase - File.bat"
"Context Menu - DO lowercase - Dir.bat" has the content below
@ECHO OFF
SET Rename_string2lowercase="%~1"
FOR /F "Tokens=*" %%V in ('DIR /L /B %Rename_string2lowercase%' ) DO (rename "%%V" "%%V")
it must not do whole directory branches or a list of all files in the current directory. it must change only one targeted string name
PS)
later i kind of fixed it, dumb of me i did it on exFAT
it didnt work on LNK files
i still have a problem renaming a directory, the rename command seems to only work on files.