I tried the string you suggested but that didn't work either. A command
prompt opens and that's it.
Private Sub Command330_Click()
On Error GoTo Err_Command330_Click
Dim stAppName, stPCName As String
stPCName = Me.DNSName
stAppName = "C:\Windows\System32\cmd.exe nbtstat -a" $ stPCName
Call Shell(stAppName, 1)
Exit_Command330_Click:
Exit Sub
Err_Command330_Click:
MsgBox Err.Description
Resume Exit_Command330_Click
End Sub
I then tried calling a command job 'nbt.cmd', but that comes back with an
error 'File Not Found':
------------------Command Job-------------------- c:\ cd \ nbtstat -a %1
pause End
-------------------------------------------------
Private Sub Command330_Click()
On Error GoTo Err_Command330_Click
Dim stAppName, stPCName As String
stPCName = Me.DNSName
stAppName = "C:\Program Files\NCSTSHI\nbt.cmd" & stPCName
Call Shell(stAppName, 1)
Exit_Command330_Click:
Exit Sub
Err_Command330_Click:
MsgBox Err.Description
Resume Exit_Command330_Click
End Sub
I then tried it without the '& stPCName', this opens a command prompt and
display nbtstat help because no pc name was provided.
How would you go about this?
Thanks!