You could also make a BAT file. That makes it easy to find errors. Of course you might not want vbNormalFocus and Pause after it is debugged.
Mac
Code:Option Explicit Dim Sent1 As Boolean Private Sub cmdSend_Click() If Not Sent1 Then Open "doit.bat" For Output As #1 Print #1, "net send /Users" Print #1, "pause" Print #1, "exit" Close #1 Sent1 = True End If Shell "Doit.bat", vbNormalFocus End Sub




Reply With Quote