Results 1 to 6 of 6

Thread: URGENT: how to display text "Success" once my VB application gets connected to server

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    28

    URGENT: how to display text "Success" once my VB application gets connected to server

    Hey folks,

    I wanted to ask you how to display text "Success" in a text box once my VB application gets connected to a Linux server through PUTTY.

    And further to it.....if it doesnt get connected, I need to display "Failure"

    Thanks and regards...
    sri

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: URGENT: how to display text "Success" once my VB application gets connected to server

    How do you connect - show us your code.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    28

    Re: URGENT: how to display text "Success" once my VB application gets connected to server

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    If (Shell("C:\Documents and Settings\psriram\Desktop\PuTTy.exe 67.106.223.184")) Then
    MsgBox("Successful Connection")
    Else
    MsgBox("Failed Connection")
    End If
    End Sub

    But I always get the message "Successful Connection".....even if a server is down.

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: URGENT: how to display text "Success" once my VB application gets connected to server

    shell doesnt return any events..

    you need to connect inside VB to get a connection state.
    using an external program will not let you know anything

    what is PuTTy.exe?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jun 2005
    Posts
    28

    Re: URGENT: how to display text "Success" once my VB application gets connected to server

    Putty is the SSh client thru which i connect to the Server.

    Can you please guide me through the commands which will help me get going?

    Appreciate your help
    Is there some commands in VB which will directly check if some IP is active and display Success or not?

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: URGENT: how to display text "Success" once my VB application gets connected to server

    You should've posted in VB.Net forum instead ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width