Does anyone know how to write a script (in Java or for use in Powershell) to rename a batch of .txt
files for them to count up in chronological order? Ex I need it to start at C1_1+100.txt, C1_1+200.txt, C1_1+300.txt ... all the way to +900.txt and then roll over to C1_2+000.txt, C1_2+100.txt ... and so on, this will go all the way to C1_28+900.txt?
The date and time of the .txt
files don't matter. Just the data within them. All the Files are in a folder on a USB drive.
I was trying to use a program called "Advanced Renamer" to rename them, but it couldn't rename them how I wanted (C1_1+100.txt, C1_1+200.txt, C1_1+300.txt ...), But this program will accept JavaScripts to aid in doing this. I'll attach an image Profile example in Advanced Renamer of the original file name (Profile1.txt, Profile2.txt, Profile3.txt) and the example of how I want it to look in the image. I did a manual override for the three as an example. However, I have to rename about 2700 files and doing that one at a time is torturous.
Any help with this would be super beneficial.