Thread: running executables in c code

  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

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, 08: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, 01: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, 08:48 PM
  5. Replies: 4
    Last Post: 01-16-2002, 12:04 AM