Send terminal command in program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheMadMidget
    New Member
    • Oct 2006
    • 98

    #1

    Send terminal command in program

    I remember there is a way to send a terminal command inside a C program, but I forget how. I've tried googling for it but no success.
  • Savage
    Recognized Expert Top Contributor
    • Feb 2007
    • 1759

    #2
    Originally posted by TheMadMidget
    I remember there is a way to send a terminal command inside a C program, but I forget how. I've tried googling for it but no success.
    Use command system.

    system(const char *command);

    Savage

    Comment

    • TheMadMidget
      New Member
      • Oct 2006
      • 98

      #3
      ? what do you mean I thought it was a function

      Comment

      • Savage
        Recognized Expert Top Contributor
        • Feb 2007
        • 1759

        #4
        Originally posted by TheMadMidget
        ? what do you mean I thought it was a function
        Sorry,i wrote it wrong.It'is a function which executes DOS commands

        Comment

        • TheMadMidget
          New Member
          • Oct 2006
          • 98

          #5
          I google that and found it, more or less understood what you meant. Thanks.

          Comment

          • Savage
            Recognized Expert Top Contributor
            • Feb 2007
            • 1759

            #6
            Originally posted by TheMadMidget
            I google that and found it, more or less understood what you meant. Thanks.
            Allways a pleasure......


            Savage

            Comment

            Working...