Hello! I'm trying to write an automated script, and this one has be stumped!
I have 2 files. 1 is named 12345.txt and 1 is named 1_file.zip. I want to have some kind of automation to rename 12345.txt to 1file.txt. I want to grab the info from the 2nd file before the extension to be able to rename the first. The exception is that the underscore needs to be removed as well for the first file. This is always the 3rd character in the file name. The extensions need to stay as is. Hopefully this makes sense!
This is what I start with:
12345.txt
1_file.zip
This is what I want:
1file.txt
1_file.zip
Does anyone know how to accomplish this? This is a manual task we have to do every day, and is prone to human mistakes...
Thanks for any help!