Results 1 to 5 of 5

Thread: IPconfig VB equivalent

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406

    Post

    Does anyone know if there is an equivalent call in VB that provides the same info that "ipconfig /all" provides from a command prompt?

  2. #2
    Guest

    Post

    Maybe the "Shell" command can help you out.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406

    Post

    Yeah, I know I can run a shell, but are you referring to running one, then 'grabbing' the output? If so, how?

  4. #4
    Member
    Join Date
    Jan 1999
    Location
    Gig Harbor, WA, USA
    Posts
    48

    Post

    If you use "/Batch <filename>" in the command line for ipconfig.exe, it'll save the data to a text file. Then just parse the text file.

    ------------------
    (¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
    Teenage Programmer
    Visual Basic, HTML, C++, JavaScript

    http://welcome.to/X12Tech
    Email: [email protected]
    ICQ#: 9872708

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406

    Post

    Thanks.
    I tried /Batch and it didn't work (I'm using NT - maybe that's why) However, I also tried
    ipconfig /all > c:\junk
    and that did work.

    Still, I'd prefer to get the data without writing a file - it's a lot less work!

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