All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: script to check the version of outlook. Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
Here is a script modified from one that I use to get the IE version, but there is one problemthat I noticed, but it should give you a start.
Depending on what Office or Outlook patches that may be installed, the version may be different than what is reported below (I used Office 2003 as that is what I have installed.
For instance, when I ran the below code on my PC with the msgbox uncommented, the version reported was 11.0.8010.0. Now, thinking on this there are a couple possible ways to get around this. 1) put the highest number first and use =1 instead of =o (see compareversion function) then exit the function if it is true.
Another way would be to use seperate If/end if statements, with the lowest number first and using =1 instead of =0 (again see function), minus the Exit function used above. This way, while the first one may be true , the last will override it and you will see what the highest level outlook is installed.
_____________________________
Mike
For useful Scripting links see the Read Me First stickey!
I am actually looking a script for the same purpose. I want to run this on my machine and the script should read the computer names from the text file.