(help) Open A Program

Discussion in 'Programming General' started by luccagalo, May 3, 2010.

(help) Open A Program
  1. Unread #1 - May 3, 2010 at 1:16 PM
  2. luccagalo
    Joined:
    May 3, 2010
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    luccagalo Newcomer

    (help) Open A Program

    HI,
    i wanna code for VB2008.

    i wanna code to open a program in the same folder as the vb program


    thanks
     
  3. Unread #2 - May 8, 2010 at 8:34 AM
  4. Harlem9191
    Joined:
    Mar 10, 2009
    Posts:
    81
    Referrals:
    0
    Sythe Gold:
    0

    Harlem9191 Member

    (help) Open A Program

    Process.Start("PROGRAM NAME HERE.exe")
     
  5. Unread #3 - May 8, 2010 at 8:00 PM
  6. Classical007
    Joined:
    Mar 14, 2010
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0

    Classical007 Member
    Banned

    (help) Open A Program

    The above works, however for opening .exe files this is better:

    Shell(Path)
     
  7. Unread #4 - May 9, 2010 at 2:03 AM
  8. Flaming Idiots
    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User

    Flaming Idiots Active Member
    Visual Basic Programmers

    (help) Open A Program

    Actually, Process.Start() is the better way to be doing it. The Shell() function is only there for legacy reasons.
     
  9. Unread #5 - May 9, 2010 at 2:09 AM
  10. HawiHawi
    Joined:
    May 8, 2010
    Posts:
    41
    Referrals:
    0
    Sythe Gold:
    0

    HawiHawi Member
    Banned

    (help) Open A Program

    Process and Start
     
  11. Unread #6 - May 30, 2011 at 9:22 AM
  12. Codeboy
    Joined:
    May 30, 2011
    Posts:
    20
    Referrals:
    0
    Sythe Gold:
    0

    Codeboy Newcomer
    Banned

    (help) Open A Program

    I know it has been solved. Just showing my way,

    Process.Start(Application.StartupPath & "\Your file.exe")
     
  13. Unread #7 - Jul 7, 2011 at 7:53 PM
  14. Blondi
    Joined:
    Jan 21, 2007
    Posts:
    1,458
    Referrals:
    0
    Sythe Gold:
    0

    Blondi Guru
    Banned

    (help) Open A Program

< need a help with my school vb project | Structs are just abstractions (proof) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site