0

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

2
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by Bagleys
1
Dim Command As String
 Command = "ipconfig /all"
 Shell("cmd /k" & Command, 1, True)
0
Dim Command As String
 Command = "ipconfig /all"
 Shell("cmd /k" & Command, 1, True)

Many thanks worked a treat

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.