Share via


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)

oCom.logoff
set oCom = nothing

Karel F