Results 1 to 3 of 3

Thread: VB Pinging..

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    VB Pinging..

    Hey,
    I have never tried to write anything that does any pinging or much on the network for that matter. I was wondering how hard it would be to ping a LAN IP and return a boolean in VB 6.0?

    Any examples are greatly appreciated.
    Thanks

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: VB Pinging..

    I don't know about the Boolean value. You would have to use this code, and then parse the output. Prolly if it was bigger than a minimum size, would be True
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Load()
    4.   Shell ("C:\Windows\System32\cmd.exe /c  C:\Windows\System32\ping 192.168.1.102 >> d:\myfile.txt"), vbNormalFocus
    5. End Sub

  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: VB Pinging..

    Take a look at this.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

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