HOWTO: Calling and using Com Connectror from VBS script.

For simple and fast testing of COM Connector you could use following VBS Script. Just copy code and paste it into file named <NAME>.vbs

Dim oCom
Dim sVers
Dim sBuild
Dim result

Set oCom = CreateObject("AxaptaComConnector.Axapta3")
oCom.Logon "", "", "", ""

sBuild = oCom.callStaticClassMethod("xInfo", "buildNo")
sVers = oCom.callStaticClassMethod("xInfo", "releaseVersion") 

result = "Release: " & sVers & " build: " & sBuild
MsgBox (result)

set oCom = nothing

Karel F

Skip to main content