need help renaming file - removing the last 21 characters of a file name
Posted: 17 Jan 2024, 15:23
not sure the best way to do this, but it seems simple. Hoping someone can help me
for work we are asked to download bulk files that have extraneous garbage posted to the end of the file. Then we are tasked with manually going in and deleting the junk on the end. These are all PDF's but for some reason and underscore and 16 random characters with a .pdf are added to the end.
an example would be:
123456789_Design-Change_L-156.pdf_096c5e428bd8be79.pdf
The underscore, sixteen characters, and the extra .pdf all need to be deleted. its basically 21 characters that just need to be deleted off the end of the file. Since there is already a .pdf just before those 21 characters. I'd like to be able to active this command and just have it run on the files in a specific folder. Its fine if it outputs a separate version of the files. I don't have admin right so i would to run this via an .ahk file on my desktop.
thanks in advance! you guys rock![Clapping :clap:](./images/smilies/icon_clap.gif)
for work we are asked to download bulk files that have extraneous garbage posted to the end of the file. Then we are tasked with manually going in and deleting the junk on the end. These are all PDF's but for some reason and underscore and 16 random characters with a .pdf are added to the end.
an example would be:
123456789_Design-Change_L-156.pdf_096c5e428bd8be79.pdf
The underscore, sixteen characters, and the extra .pdf all need to be deleted. its basically 21 characters that just need to be deleted off the end of the file. Since there is already a .pdf just before those 21 characters. I'd like to be able to active this command and just have it run on the files in a specific folder. Its fine if it outputs a separate version of the files. I don't have admin right so i would to run this via an .ahk file on my desktop.
thanks in advance! you guys rock
![Clapping :clap:](./images/smilies/icon_clap.gif)