How to make a IP Config-Msgbox

Author Message
Aviris

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 6/7/2011
  • Status: offline
How to make a IP Config-Msgbox Tuesday, June 07, 2011 8:03 PM (permalink)
0
Hi everyone, i'm trying to make some little things in vbs. normally i just "speak" Python yet, but i'm trying to learn vbs since some weeks. I want to make a nice little Windows Sidebargadget and there you can use vbs. so i made some buttons which give some informations about serialnumber etc. from my pc. the next thing i'd like to have is a button which makes a msgbox popup which looks like this:
IP-Address: [myip]
Subnetmask: [mysubnet]
Default Gateway: [gateway]

i find it really hard to get the right commands. I started my script like this:

strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select IPAddress[]; IPSubnet[]; DHCPEnabled; DefaultIPGateway[] From Win32_NetworkAdapterConfiguration")
MsgBox (???)

but i'm not sure about if i made it right...
and i found this one in the holy huge inet:
Set oSh=CreateObject("WScript.Shell")
Set oEx=oSh.Exec("ipconfig /all")
Do While oEx.Status=0
WScript.Sleep 100
Loop
buf=Replace(oEx.StdOut.ReadAll,vbCrLf,"")
WScript.Echo buf
WScript.Quit

and it works well, but its not really nice done with all this dots and there are just to many informations...

Hope someone can help me.
When you have questions to ask, just ask
Aviris
 
Edit: Could it be, that I'm totally wrong in this part of the Forum?
<message edited by Aviris on Tuesday, June 07, 2011 8:04 PM>
 
#1
    Aviris

    • Total Posts : 2
    • Scores: 0
    • Reward points : 0
    • Joined: 6/7/2011
    • Status: offline
    Re:How to make a IP Config-Msgbox Monday, June 20, 2011 2:56 AM (permalink)
    0
    THX for no help, ya noops!!!11!!1oneoneeleven
     
    #2
      ..::Ryan::..

      • Total Posts : 108
      • Scores: 0
      • Reward points : 0
      • Joined: 3/23/2009
      • Status: offline
      Re:How to make a IP Config-Msgbox Wednesday, June 22, 2011 12:26 PM (permalink)
      0
      Wow that def won't get anyone to help you
       
      #3

        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9