running executables in c code

This is a discussion on running executables in c code within the C Programming forums, part of the General Programming Boards category; hi folks, i need to run an executable from a c program and i'm having difficulty obtaining the information on ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    4

    running executables in c code

    hi folks,

    i need to run an executable from a c program and i'm having difficulty obtaining the information on how to do so.
    do I have to pass arguments to the command prompt?

    i am compiling on windows 2000 using visual c++.

    thanks in advance,
    Cathal

  2. #2
    SleepWalker tjohnsson's Avatar
    Join Date
    Apr 2004
    Posts
    70
    try this...
    int system( char *cmd );

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,673

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem running code
    By michaelp in forum C++ Programming
    Replies: 4
    Last Post: 02-19-2008, 07:52 PM
  2. multithreading question
    By ichijoji in forum C++ Programming
    Replies: 7
    Last Post: 04-12-2005, 10:59 PM
  3. Running external commands from within c code
    By Nova_Collision in forum C++ Programming
    Replies: 1
    Last Post: 03-16-2004, 12:23 PM
  4. Warning to those running executables posted to the board
    By *ClownPimp* in forum C++ Programming
    Replies: 11
    Last Post: 04-03-2002, 07:48 PM
  5. Replies: 4
    Last Post: 01-15-2002, 11:04 PM

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