Thread: executing another program

  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,138
    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, 12: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, 10:04 PM