RGoldthorpe
Technical User
PLease help having not done an awful lot of programming before in VB
Could somebody help me please
I have the following code
Private Sub Viewer_Button_Click()
On Error GoTo Err_Viewer_Button_Click
Dim stAppName As String
Dim LSMTAG As String
LSMTAG = Form_Computers.Combo6.Value
stAppName = "C:\Program Files\ORL\VNC\vncviewer.exe"
Call Shell(stAppName, 1)
Exit_Viewer_Button_Click:
Exit Sub
What I would like to know is how can I use LSMTAG as a switch at the end of the vncveiwer line so that it tell the command line which pc to log on to
E.G "C:\Program Files\ORL\VNC\vncviewer.exe" /lsmtag
where LSMTAG is a computer name
Please explain really simply coz I not very good
Could somebody help me please
I have the following code
Private Sub Viewer_Button_Click()
On Error GoTo Err_Viewer_Button_Click
Dim stAppName As String
Dim LSMTAG As String
LSMTAG = Form_Computers.Combo6.Value
stAppName = "C:\Program Files\ORL\VNC\vncviewer.exe"
Call Shell(stAppName, 1)
Exit_Viewer_Button_Click:
Exit Sub
What I would like to know is how can I use LSMTAG as a switch at the end of the vncveiwer line so that it tell the command line which pc to log on to
E.G "C:\Program Files\ORL\VNC\vncviewer.exe" /lsmtag
where LSMTAG is a computer name
Please explain really simply coz I not very good