Does anyone know if there is an equivalent call in VB that provides the same info that "ipconfig /all" provides from a command prompt?
Printable View
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.
Yeah, I know I can run a shell, but are you referring to running one, then 'grabbing' the output? If so, how?
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
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!