Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim temp As Integer
temp = Shell("\windows\system32\cmd.exe", AppWinStyle.NormalFocus)
MsgBox(temp)
End Sub
End Class
Will this do?