Don't know if this will help you, but I pieced together pieces of code from this site to allow me to select a directory, look for all .bmp files in the selected folder and rename them a certain way if a condition was met.
I don't know exactly how to provide you your specific code, but this site has a lot of good stuff you can piece together and possibly solve your problem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.