Results 1 to 10 of 10
  1. #1
    -0x00's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    3

    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

  2. #2
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Process.Start(xxxxxxx)
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  3. #3
    -0x00's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    3
    Process.Start("Textbox1.Text")

    Naw tried that already.

  4. #4
    cosconub's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in the programming section MPGH Cash: $90,000,000,000
    Posts
    372
    Reputation
    -4
    Thanks
    39
    My Mood
    Psychedelic
    try with out the quotes

    A man is but the product of his thoughts what he thinks, he becomes.
    ~Mohandas Gandhi


    A Genius is nothing with out an idea, An idea is always an idea even without a genius.
    ~ Immortal

  5. #5
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by -0x00 View Post
    Process.Start("Textbox1.Text")

    Naw tried that already.
    like that guy said.. try it without the quotes.. obviously.. -.-
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  6. The Following User Says Thank You to 'Bruno For This Useful Post:

    cosconub (10-24-2010)

  7. #6
    -0x00's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    3
    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

  8. #7
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by -0x00 View Post
    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



    .
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  9. #8
    cosconub's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in the programming section MPGH Cash: $90,000,000,000
    Posts
    372
    Reputation
    -4
    Thanks
    39
    My Mood
    Psychedelic
    Shell(xxx)

    is kinda better then

    Process.start(xxx)

    in my opinion

    A man is but the product of his thoughts what he thinks, he becomes.
    ~Mohandas Gandhi


    A Genius is nothing with out an idea, An idea is always an idea even without a genius.
    ~ Immortal

  10. #9
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by cosconub View Post
    Shell(xxx)

    is kinda better then

    Process.start(xxx)

    in my opinion
    the difference is that it returns a process id
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  11. #10
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Mkay. Solved, no more posting unless necessary.

Similar Threads

  1. [Help] Real Quick Help Needed [Solved]
    By cseay1 in forum C++/C Programming
    Replies: 6
    Last Post: 09-10-2011, 10:42 AM
  2. [SOLVED] yo guys , help needed :D
    By noobybanana in forum CrossFire Help
    Replies: 10
    Last Post: 03-03-2011, 06:07 PM
  3. [SOLVED]MW2 crack help needed
    By Imafalam in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 10-12-2010, 02:06 PM
  4. [SOLVED :)]A little help needed
    By JIGS4W in forum Alliance of Valiant Arms (AVA) Help
    Replies: 4
    Last Post: 09-07-2010, 06:26 AM
  5. HELP NEEDED IN PLayspan[SOLVED]
    By darkxali in forum CrossFire Help
    Replies: 9
    Last Post: 07-30-2010, 02:15 PM