I've used BulkRenamer for years at home on my pictures/videos library, but now I'm trying to automate a renaming job that happens daily in my lab. If I can show this works, I can purchase a commercial license for it and deploy it. Jobs will drop randomly throughout the day, so I would schedule the script to just run hourly in windows scheduler.
Files are dropped with full detailed filenames, plus a job code, but need to be delivered with just a job code.
B2405-2_ProjectTitleGoesHere_HM567823_Lab3.txt renamed to HM567823_Lab3.txt
B2405-4_LongerProjectTitleGoesHere_HM239876324_Lab5.txt renamed to HM239876324_Lab5.txt
I can do this in the #5 panel in the GUI, by simply saying Crop before HM and hitting Rename. Works perfectly. But I dont want to have to do it manually, Id' rather it go automatically, since some jobs will take a few hours to process and may not finish up till after hours. I would try the /copylast n, but the job numbers vary between 12-20 characters. Never consistent. Same with the project number/name, never going to be consistent. How would I script this to remove everything before the HM? is there a /crop command that I missed in the manual?