Help Needed =/[Solved]Well if i typed a directory in a TextBox and clicked a button to run the file from directory , how would i do that? Can some one post a source here? Example: Textbox1 + 1 Button Textbox1.Text = "C:\upx.exe" How would i start the program by clicking Button1? Source = Rep + thank
Originally Posted by -0x00 Process.Start("Textbox1.Text") Naw tried that already. like that guy said.. try it without the quotes.. obviously.. -.-
Nevermind i got it. Code: Dim pid As Long ' Start the program. pid = Shell(TextBox1.Text, vbMinimizedNoFocus) If pid = 0 Then MsgBox("Error starting program") Exit Sub End If
Originally Posted by -0x00 Nevermind i got it. Code: Dim pid As Long ' Start the program. pid = Shell(TextBox1.Text, vbMinimizedNoFocus) If pid = 0 Then MsgBox("Error starting program") Exit Sub End If .
Originally Posted by cosconub Shell(xxx) is kinda better then Process.start(xxx) in my opinion the difference is that it returns a process id