Click to See Complete Forum and Search --> : IPconfig VB equivalent
wayneh
Nov 16th, 1999, 09:31 PM
Does anyone know if there is an equivalent call in VB that provides the same info that "ipconfig /all" provides from a command prompt?
Maybe the "Shell" command can help you out.
wayneh
Nov 20th, 1999, 05:22 AM
Yeah, I know I can run a shell, but are you referring to running one, then 'grabbing' the output? If so, how?
ShadowCrawler
Nov 20th, 1999, 09:36 AM
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: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)
wayneh
Nov 21st, 1999, 11:04 AM
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!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.