I'm trying to create a .bat
file which will change the file names on selected folder by the user. The idea is to add a sub-string at the end of the files' names unless they already has it (like a watermark signature).
For example:
filename.mp4
will become filename.made_by_me.mp4
The files can be from these types: .avi
.mkv
.mp4
I also want it to be able to check if the filename contains Upper-case or not.
If it does, it will add .Made_By_Me
instead of .made_by_me
to the filename.
At last, if the filename already contains the sub-string, it won't add it again.
.
.
.
.
My code so far:
for /f "delims=" %%a in ('dir /b /a-d *.avi *.mkv *.mp4 ^|findstr /iv ".Made_by_me"') do ren "%%~a" "%%~na.Made_by_me%%~xa"
I hope what I have requested is possible and really appreciate any help you can provide.