|
-
Nov 16th, 1999, 10:31 PM
#1
Thread Starter
Hyperactive Member
Does anyone know if there is an equivalent call in VB that provides the same info that "ipconfig /all" provides from a command prompt?
-
Nov 19th, 1999, 09:47 AM
#2
Maybe the "Shell" command can help you out.
-
Nov 20th, 1999, 06:22 AM
#3
Thread Starter
Hyperactive Member
Yeah, I know I can run a shell, but are you referring to running one, then 'grabbing' the output? If so, how?
-
Nov 20th, 1999, 10:36 AM
#4
Member
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
-
Nov 21st, 1999, 12:04 PM
#5
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|