Process.Start(xxxxxxx)
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
Process.Start(xxxxxxx)
Light travels faster than sound. That's why most people seem bright until you hear them speak.
Process.Start("Textbox1.Text")
Naw tried that already.
try with out the quotes
~Mohandas GandhiA man is but the product of his thoughts what he thinks, he becomes.
~ ImmortalA Genius is nothing with out an idea, An idea is always an idea even without a genius.
cosconub (10-24-2010)
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
Shell(xxx)
is kinda better then
Process.start(xxx)
in my opinion
~Mohandas GandhiA man is but the product of his thoughts what he thinks, he becomes.
~ ImmortalA Genius is nothing with out an idea, An idea is always an idea even without a genius.
Mkay. Solved, no more posting unless necessary.