Opening .exe

This is a discussion on Opening .exe within the C++ Programming forums, part of the General Programming Boards category; Hello, i was wondering if anyone could help me out. I need to make my program open a .exe file, ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    11

    Opening .exe

    Hello,
    i was wondering if anyone could help me out. I need to make my program open a .exe file, thats it. For example: You double click on my program and it pops up, then u type "g" press enter and up pops internet explorer.
    thx much for any help.

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,805
    check out the Faq
    Woop?

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One solution is ShellExecute(). Another solution is CreateProcess().

    Kuphryn

  4. #4
    Registered User
    Join Date
    Mar 2004
    Posts
    18
    system() anyone?

  5. #5
    Registered User
    Join Date
    Jul 2004
    Posts
    14
    WinExec(...)

    e.g.:
    Code:
    ::WinExec("calc.exe",SW_NORMAL);

  6. #6
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    >>system() anyone?
    *SMACK* Bad! Read the FAQ!
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fopen can't open .exe?
    By fanoliv in forum C Programming
    Replies: 11
    Last Post: 04-05-2011, 03:24 PM
  2. Replies: 13
    Last Post: 12-09-2008, 10:09 AM
  3. need help with file opening errors
    By lld4rkll in forum C++ Programming
    Replies: 6
    Last Post: 07-13-2006, 06:20 AM
  4. Changing program from .cpp to .exe
    By BIt_toRreNt in forum C++ Programming
    Replies: 6
    Last Post: 02-16-2005, 03:24 PM
  5. Problem creating .exe files
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 03-22-2002, 01:25 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21