Robert, Here is a cut and paste from an Access application. I hope this helps.
'--------------------------------------------------------------------------------------
'Run MAS90 VI Imports - NOTES
'1. The VI Import must be compiled and work properly from the VI menu.
'2. The VI Import must be added to the ""JOBS"" menu in Visual Integrator.
' Select the ""Menu"" button while in the Job Import Maintenance and add it to the menu list.
'3. Make sure that the user (sUser) on the command line has access to VI and
' can run the job you have defined.
'4. The variable sHomePath must point to the MAS 90 Home folder. ""Q:\masV4\MAS90\Home\""
'5. The variable sUser must be a valid MAS 90 user defined in security.
'6. The Variable sPass must be the password for sUser.
'7. The variable sComp is the MAS 90 company ID.
'8. The variable sProg is the VI program name. ""VIWI0D"" Get the valid name from VI.
'Set current Drive and Folder before launching MAS 90
Dim AppString As String
AppString = Left(sHomePath, 1)
ChDrive AppString
ChDir sHomePath
AppString = Chr(34) & sHomePath & ""PVXWIN32.ExE"" & Chr(34) & _
"" ..\launcher\sota.ini ..\soa\startup.m4p -ARG DIRECT UION "" & _
sUser & "" "" & sPass & "" "" & sComp & "" "" & sProg & "" DISPLAY""
'MsgBox AppString
Call Shell(AppString, vbNormalFocus)