Like this:
VB Code:
Option Explicit Private Sub Form_Load() Shell ("C:\Windows\System32\cmd.exe /c C:\Windows\System32\netstat -n >> C:\myfile.txt"), vbNormalFocus End Sub
then you could read it in and display it, or use shellexecute to open the file in notepad.




Reply With Quote