Friday, September 16, 2011

Shell ipconfig the lazy way Visual Basic 2010


  • Shell("cmd /c ipconfig /all | findstr ""IPv4 Subnet Gateway"" > c:\support\ipconfig.txt", AppWinStyle.Hide, True)


  • lblIPConfig.Text = My.Computer.FileSystem.ReadAllText("c:\support\ipconfig.txt")

  • No comments:

    Post a Comment