Hi im trying to run "ipconfig /all" in vb this is the code i have but the window closes down after it has completed the command is there away to keep the window active until the user wants to close it?

Dim Command As String
            Command = "ipconfig /all"
            Shell("cmd /c" & Command, 1, True)

Thanks

Bagleys

Recommended Answers

All 2 Replies

Dim Command As String
 Command = "ipconfig /all"
 Shell("cmd /k" & Command, 1, True)
Dim Command As String
 Command = "ipconfig /all"
 Shell("cmd /k" & Command, 1, True)

Many thanks worked a treat

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.