Hello,
I've been trying to write a VB Script that would take in a list of file names in the same directory, parse out the ones with a *.zip extension and then arrange by state with the max version number.
Example:
STPICA01.zip
STPICA02.zip
STPIIA01.zip
STPIIL01.zip
STPIIL02.zip
STPIIL10.zip
They all follow the same convention:
STPI<state code><version>.zip
So what would be outputted ideally:
CA Version 02
IA Version 01
IL Version 10
I've gotten close with AutoIt scripting, it would just output the parsed names to a text file, but everytime it ran, I had to click on Run for the security settings. Also it displayed all the states. It needs to run with no user intervention.
I've also tried DOS scripting and got as far as this command:
dir /B /N STPI*.zip > STATEVER.txt
After that the syntax was too daunting for me.
And the reason I resorted to using VB Script is that I'm using BGinfo to display information on my desktop (there's a custom field setting), and I needed something to tell me what state versions are loaded on this machine. (It's for tax prep software)
Any help would be greatly appreciated, thanks!