How do I code it so I get the application version number

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Alpha_AI
Pro Scripter
Posts: 61
Joined: Wed Sep 19, 2007 9:30 am

How do I code it so I get the application version number

Post by Alpha_AI » Thu Aug 28, 2008 12:00 pm

I would like to get the application version number from my script
how would I do that?

Ben

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Aug 28, 2008 12:44 pm

If you mean the Macro Scheduler version number, use the built in variable MSCHED_VER.

MDL>MSCHED_VER

Should display your version number.

Alpha_AI
Pro Scripter
Posts: 61
Joined: Wed Sep 19, 2007 9:30 am

Post by Alpha_AI » Thu Aug 28, 2008 2:41 pm

Hi there JRL

No i meant any application version number.

Kind regards,

Ben

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Aug 28, 2008 3:58 pm

I doubt that there is any requirement for any given application to provide their version number. So.... my GUESS on this would be, it depends on the application. Some version numbers may be hard coded into binary files or displayed only in a raster file so the only way to get the information would be to emulate user input and then use OCR to attempt to get the version number from the displayed picture. If you're lucky it might be stored in the registry, or it might be in a text file. If you're really unlucky it might only be found on the outside of the box that held the CD.

Good Luck.

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Thu Aug 28, 2008 4:25 pm

I believe you can get file version from filesystemobject, but doing it is beyond me. I also don't think it will be populated for all .exe's.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts