Question Dos Command Execution Logs Show in TextBox?????

bilalzaink

Member
Joined
Dec 21, 2011
Messages
5
Programming Experience
Beginner
My Code
"""
Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click
Shell("data\iphuc -a com.apple.afc2 -s data/scriptn1") Its a DOS Command

End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

End Sub
"""

How I can...

When A Button click a Dos Command Execute..So How I can Do execute A dos Command log Show in Textbox1...
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,543
Location
Norway
Programming Experience
10+

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,543
Location
Norway
Programming Experience
10+
I recommend you read the help topic I linked to and also the VB code example there.
There are also many more help pages for Process class and ProcessStartInfo class if you want to learn more about those.
 
Top Bottom