Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. ping a PC using VB.net

ping a PC using VB.net

Scheduled Pinned Locked Moved Visual Basic
questioncsharplinux
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sentmemail
    wrote on last edited by
    #1

    Hi, how can i get this vbscript code into VB.net? thanks Set objShell = CreateObject("WScript.Shell") strPingResults = LCase(objExec.StdOut.ReadAll) If InStr(strPingResults, "reply from") Then Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")

    M L J 3 Replies Last reply
    0
    • S sentmemail

      Hi, how can i get this vbscript code into VB.net? thanks Set objShell = CreateObject("WScript.Shell") strPingResults = LCase(objExec.StdOut.ReadAll) If InStr(strPingResults, "reply from") Then Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")

      M Offline
      M Offline
      mysorian
      wrote on last edited by
      #2

      This is a guess. You may need to add a COM reference. When I find something that really works I will post again.

      1 Reply Last reply
      0
      • S sentmemail

        Hi, how can i get this vbscript code into VB.net? thanks Set objShell = CreateObject("WScript.Shell") strPingResults = LCase(objExec.StdOut.ReadAll) If InStr(strPingResults, "reply from") Then Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        http://www.codeproject.com/vb/net/PINGCONTROL.asp[^]

        1 Reply Last reply
        0
        • S sentmemail

          Hi, how can i get this vbscript code into VB.net? thanks Set objShell = CreateObject("WScript.Shell") strPingResults = LCase(objExec.StdOut.ReadAll) If InStr(strPingResults, "reply from") Then Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")

          J Offline
          J Offline
          Joshua Quick
          wrote on last edited by
          #4

          If you're using .NET 2.0 (Visual Studio 2005) then you can use this... My.Computer.Network.Ping

          S 1 Reply Last reply
          0
          • J Joshua Quick

            If you're using .NET 2.0 (Visual Studio 2005) then you can use this... My.Computer.Network.Ping

            S Offline
            S Offline
            sentmemail
            wrote on last edited by
            #5

            i am using VS 2003. Where can i get to know what are the classes available for use?

            D 1 Reply Last reply
            0
            • S sentmemail

              i am using VS 2003. Where can i get to know what are the classes available for use?

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              The .NET Framework SDK on MSDN, click[^]. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups