Sorry, I Was Wrong you can't do a kill and then a run.  The run hangs. You
could have seperate messages to start the server and then to connect.


Updated batch file code

Sub CreateConnectBatch()
    On Error Resume Next
    Dim FileNum As Integer
    FileNum = FreeFile
    Kill "C:\CONNECTTO.BAT"
    Open "C:\CONNECTTO.BAT" For Output As #FileNum
        Print #FileNum, "@ECHO ON"
        Print #FileNum,
        Print #FileNum, "C:"
        Print #FileNum, "CD C:\Program Files\Orl\VNC\"
        Print #FileNum, "WinVNC -connect %1"
    Close #FileNum

End Sub

<SNIP>
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to