Results 1 to 12 of 12
  1. #1
    Web-Designer's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Arizona, USA
    Posts
    270
    Reputation
    11
    Thanks
    53
    My Mood
    Fine

    [Help]How to start another program?[Solved]

    I know how to have it open a web page but I wanna make a button start a program, and if the program isn't found or on the computer have it have a pop-up window say so.

    I was told
    Code:
    Process.Start(program file path)
    would work, well it doesn't I then added the " things still didnt work.


    What would do that? +1 thanks and +rep and credit (If you want)

    (btw I did search for another post about it before I posted this, so yeah.)

  2. #2
    .Celtics's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    148
    Reputation
    10
    Thanks
    5
    My Mood
    Crappy
    Process.start("notepad")

  3. #3
    Web-Designer's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Arizona, USA
    Posts
    270
    Reputation
    11
    Thanks
    53
    My Mood
    Fine
    Quote Originally Posted by .Celtics View Post
    Process.start("notepad")
    Okay it opens notepad, but I'm trying to make myself a game starter to start my games, well the first one is Crossfire and its not working I tried

    Process.Start("crossfire")
    Process.Start("crossfire.exe")
    Process.Start("Crossfire.exe")
    Process.Start("Crossfire")

    NONE WORK. . .any ideas? I found a youtube video:




    That would take forever and would be a huge code source. . .is that the only way?
    Last edited by Web-Designer; 09-04-2010 at 07:19 PM.

  4. #4
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Code:
    Process.Start("C:\Program Files\test.exe")
    Should work like that I think.

  5. The Following 2 Users Say Thank You to Lolland For This Useful Post:

    Jason (09-04-2010),Web-Designer (09-04-2010)

  6. #5
    .Celtics's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    148
    Reputation
    10
    Thanks
    5
    My Mood
    Crappy
    I have made a program that open the .exe of the game, but it I needs to be in the folder.

    Same code
    Process.Start("name of game.exe")

  7. #6
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Notpad works because windows has it "preset" Notepad, Wordpad . etc etc.

    You need the full file path plus extension otherwise


     


     


     



    The Most complete application MPGH will ever offer - 68%




  8. The Following User Says Thank You to NextGen1 For This Useful Post:

    Web-Designer (09-04-2010)

  9. #7
    Web-Designer's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Arizona, USA
    Posts
    270
    Reputation
    11
    Thanks
    53
    My Mood
    Fine
    Okay I got it! Thanks, I got it f*cked up some how. . .but its working now

  10. The Following User Says Thank You to Web-Designer For This Useful Post:

    NextGen1 (10-08-2010)

  11. #8
    mizzer3's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    MPGH.net
    Posts
    888
    Reputation
    7
    Thanks
    171
    My Mood
    Sleepy
    for example:
    Code:
    Process.Start ("iexplore.exe")
    work ?
    Heal Ur Allies, And You Will Win The War.



    RESPECT LIST :

    - Very Good Friend - Sn0wn00b
    - All the Mpgh minions ( special m3 )
    - th3reaper
    - respeckt52
    - s3liskar
    - thecamels8

  12. #9
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by mizzer3 View Post
    for example:
    Code:
    Process.Start ("iexplore.exe")
    work ?
    It works for selected cases, as NextGen explained earlier some programs are preset in windows and so can be directly called with their executable name. The majority of programs, however, require the full path and extension to run.

    i.e

    [php]
    Process.Start("TheGame.exe") 'this will not work, as "TheGame" is not preset in windows and it doesnt know how to activate it.'

    Process.Start("C:\NewFolder\MyFiles\TheGame.exe") ' by defining the full path and extension, windows knows exactly what it should be executing and will work.
    [/php]

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  13. #10
    mizzer3's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    MPGH.net
    Posts
    888
    Reputation
    7
    Thanks
    171
    My Mood
    Sleepy
    Quote Originally Posted by J-Deezy View Post


    It works for selected cases, as NextGen explained earlier some programs are preset in windows and so can be directly called with their executable name. The majority of programs, however, require the full path and extension to run.

    i.e

    [php]
    Process.Start("TheGame.exe") 'this will not work, as "TheGame" is not preset in windows and it doesnt know how to activate it.'

    Process.Start("C:\NewFolder\MyFiles\TheGame.exe") ' by defining the full path and extension, windows knows exactly what it should be executing and will work.
    [/php]
    yeah , i know. but for some simply progs, like a webbrowser , this will work fine
    Heal Ur Allies, And You Will Win The War.



    RESPECT LIST :

    - Very Good Friend - Sn0wn00b
    - All the Mpgh minions ( special m3 )
    - th3reaper
    - respeckt52
    - s3liskar
    - thecamels8

  14. #11
    iZ3RO's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    191
    Reputation
    32
    Thanks
    536
    My Mood
    Stressed
    Code:
    Process.Start("C:\FileLocation\New Folder\GameName.exe")
    You need to tell it exactly where the game is located.

  15. #12
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by iZ3RO View Post
    Code:
    Process.Start("C:\FileLocation\New Folder\GameName.exe")
    You need to tell it exactly where the game is located.
    That's pretty much exactly what I posted a few hours ago

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

Similar Threads

  1. [Help] Associating file extension with program? [solved]
    By Bombsaway707 in forum Visual Basic Programming
    Replies: 7
    Last Post: 03-21-2011, 07:41 PM
  2. [Help]How to make scrolling text?[solved]
    By Bombsaway707 in forum Visual Basic Programming
    Replies: 18
    Last Post: 01-07-2011, 02:55 PM
  3. [Help]How to make Program overlay Combat Arms[solved]
    By Boomdocks in forum Visual Basic Programming
    Replies: 6
    Last Post: 01-06-2011, 08:42 AM
  4. [SOLVED]help! how can I start a server in alterIwnet?
    By 4ever2u in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 09-10-2010, 07:12 PM
  5. [Help] How to close a program with a hotkey (VB6).
    By wr194t in forum Visual Basic Programming
    Replies: 7
    Last Post: 11-22-2007, 06:07 AM