Link to home
Start Free TrialLog in
Avatar of Larry okla
Larry okla

asked on

Batch Rename files in a folder

have a folder containing 50 JPEG Images & I am trying to rename in Batch using folder name & Also by adding __-1 at the end of each JPEG images

Wire-Alum_
________________________
URD-350-350-4-0-WESLEYAN
URD-AL-1350-HUNTER-1000R
Expected Result:

Wire-Alum_
_______________
Wire-Alum_URD-350-350-4-0-WESLEYAN__-1
Wire-Alum_URD-AL-1350-HUNTER-1000R__-1
Avatar of Michael Link
Michael Link
Flag of United Kingdom of Great Britain and Northern Ireland image

Please see a guide here for 4 different ways this can be completed.
Avatar of Bill Prew
Bill Prew

Do they have any extension (JPG, JPEG)?  And you want to rename all files in this folder?


»bp
SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can do this with just a DOS command if you want, change into the folder where the files are, and then do:

for %A in (*.*) do @ren %A Wire-Alum_%~nA__-1%~xA

Open in new window


»bp
Avatar of Larry okla

ASKER

@Bill Prew JPG
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@Bill Prew

Thanks for your help, it worked just like i want it
Great!


»bp
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This seems like a fair distribution of points based on the OP's comments & endorsements