vinifera Posted May 10, 2016 Share Posted May 10, 2016 i suck at loops can someone make me a cmd/bat script that would rename bunch of these: Windows6.1-KB2511455-x64.msu to simply KB2511455-x64.msu i have 160 of these (all different number) and its nightmare to do manual renaming... Link to comment Share on other sites More sharing options...
dencorso Posted May 11, 2016 Share Posted May 11, 2016 All you need is the no-install GUI version of the Bulk Rename Utility. You'll do it in a few seconds. Link to comment Share on other sites More sharing options...
Yzöwl Posted May 11, 2016 Share Posted May 11, 2016 Something simple like this may work for you. @Echo Off & SetLocal EnableDelayedExpansion For %%A In (*.msu) Do (Set "_=%%A" If "%%A" NEq "!_:*-KB=!" Ren "%%A" "KB!_:*-KB=!") Link to comment Share on other sites More sharing options...
vinifera Posted May 11, 2016 Author Share Posted May 11, 2016 holy shit ! Yzöwl you are life saver ! cant believe it did it all in less than a second O_o THANK YOU !!!!!!!!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now