Executing a program from a program

This is a discussion on Executing a program from a program within the C Programming forums, part of the General Programming Boards category; I'm sure this is easy as hell but I can't find any help on this at all, anywhere. All I ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    4

    Executing a program from a program

    I'm sure this is easy as hell but I can't find any help on this at all, anywhere.

    All I want to do is call say, Internet Explorer from my program if it reaches a certain point.

    I've tried a System("iexplorer.exe")
    or however that command works but it didn't launch IE (yes the location of IE etc. is correct in the program

    So, any ideas :/
    It seems like such a simple thing to do, perhaps thats why its not covered in any tutorials or help sites i've read about?

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Took me about 1 minute to find it on the FAQ.

    http://faq.cprogramming.com/cgi-bin/...&id=1043284392

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    yes the location of IE etc. is correct in the program
    Your doing this in the directory that has IE right? You could just put the full path in there.

    'System' works for you? Isnt it 'system'?

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    102
    Have you tried with spawnl function?!
    Saravanan.T.S.
    Beginner.

  5. #5
    UNIX chick
    Join Date
    Mar 2003
    Posts
    92
    Just to be picky: You should use fork() and one of the exec functions instead of system(). You're left with more control that way.

  6. #6
    Registered User
    Join Date
    Jul 2003
    Posts
    4
    Well, I knew that would happen.
    Thanks for so nicely pointing out the article in the FAQ, which I did look through but still.

    Thanks for all the tips anyway, I know its annoying having such a simple question asked :P

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 40
    Last Post: 09-01-2006, 12:09 AM
  2. Need help with my program...
    By Noah in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 06:49 PM
  3. Executing a program
    By trancedeejay in forum C Programming
    Replies: 7
    Last Post: 03-06-2006, 07:55 AM
  4. Problem executing sample program:
    By mrabiu in forum C++ Programming
    Replies: 4
    Last Post: 03-13-2004, 05:44 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

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