executing another program

This is a discussion on executing another program within the C++ Programming forums, part of the General Programming Boards category; this is similar to the other thread, but im not quite sure i understand....i just want to execute simple commands, ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    162

    executing another program

    this is similar to the other thread, but im not quite sure i understand....i just want to execute simple commands, such as net send or ping (usually executed in command prompt), and just have it within a loop....how can I go about calling it, and is it possible to have a string to pass as the arguments?

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Yes, go to the faq and use ShellExecute, which I find to be the best combination of ease of use and speed.

    Ignore this though if you are on a non windows platform.

Popular pages Recent additions subscribe to a feed

Similar Threads

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

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