WSH/VBScript Version

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am using the regular expressions object in VBScript
from an Excel application and I want to test the version
number of WSH or VBScript installed on the user's
machine. I've tried variations on the following with no
luck [1]. Any suggestions on how I can discover the
installed version of WSH or VBScript from my Excel
application would be very much appreciated. - Ethan

[1] Dim wshshell
Set wshshell = CreateObject("WScript.Shell")
lblWSRVersion.Caption = "Version: " & wshshell.Version
 
I am using the regular expressions object in VBScript
from an Excel application and I want to test the version
number of WSH or VBScript installed on the user's
machine. I've tried variations on the following with no
luck [1]. Any suggestions on how I can discover the
installed version of WSH or VBScript from my Excel
application would be very much appreciated. - Ethan
....

Do a better job of reading the VBScript documentation. WScript has a Version
property, WScript.Shell doesn't. All you need is

wsv = WScript.Version
 
Back
Top