Answer the question
In order to leave comments, you need to log in
How to write a script to rename files while keeping the extension?
Hello. Please help with writing a BAT script, because I myself am a complete zero in it.
Task. There are several files:
setup.exe
setup-1.bin
setup-2.bin
We need to rename them all to get
setup_ver1.0.exe
setup-1_ver1.0.bin
setup-2_ver1.0.bin
In short, at the end of the file name , add _ver1.0 before the extension. How can I do that?
I tried a bunch of options, like
ren "setup*" "setup*_ver-1.0.*"
And in a loop, nothing helped. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question