how do i run external programs from source?

This is a discussion on how do i run external programs from source? within the C++ Programming forums, part of the General Programming Boards category; Hi! Could somebody tell me how i run or input a command in c++ telling the compiler to run a ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    1

    Question how do i run external programs from source?

    Hi!
    Could somebody tell me how i run or input a command in c++ telling the compiler to run a program in a special directory?

    for example, i want to tell my compiler to run in the directory /bin/ the program "myprog". How do refer a comman in the sourcecode running the program "/bin/myprog" ???


    Tamer

  2. #2
    Registered User codingmaster's Avatar
    Join Date
    Sep 2002
    Posts
    309
    system ("ping www.cprogramming.com");

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A few questions on programs and when they can run...
    By Junior89 in forum Windows Programming
    Replies: 2
    Last Post: 04-05-2005, 08:47 PM
  2. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  3. DJGPP violations...
    By kooma in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-08-2002, 12:44 PM
  4. code to run (linux) programs WITH arguments
    By N8760 in forum C++ Programming
    Replies: 3
    Last Post: 12-27-2001, 03:35 PM
  5. Running external programs
    By speedy in forum C++ Programming
    Replies: 3
    Last Post: 10-26-2001, 06:50 PM

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