Monday, February 23, 2015

Deleting repeated parts of a file name?

We regularly download files, which have repeated parts of a file name. This is an issue as the drive we have to save them to has a 256 character path limit, and they are saved many subfolders deep.
At the moment I manually remove repeated parts of the file name that are the same, as per the attached image, deleted parts are highlighted in red:
enter image description here


Is there a batch file/quicker way of looking for a duplicate in the file name and removing it? Thanks, Russ.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...