Skip to content
+1-888-319-3663

COMMUNITY FORUM

Call SmartConnect from vbScript

Tom asked 2 years ago
Is there a way to open SmartConnect, login, run a specific map (or group) and close SmartConnect using vbsScript?
Answers
Eric Lott answered 2 years ago
Dim wsh As Object
Set wsh = VBA.CreateObject(“WScript.Shell”)
Dim waitOnReturn As Boolean: waitOnReturn = True
Dim windowStyle As Integer: windowStyle = 1
 
Dim cmd As String
cmd = “””C:\\Program Files (x86)\\eOne Solutions\\SmartConnect\\eOne.SmartConnect.RunMapConsole.exe”” YOUR_MAP_NAME cd “”C:\\Program Files (x86)\\eOne Solutions\\SmartConnect”””
 
wsh.Run cmd, windowStyle, waitOnReturn

If you would like to submit an answer or comment, please sign in to the eOne portal.