Executing shell/dos commands

This is a discussion on Executing shell/dos commands within the C++ Programming forums, part of the General Programming Boards category; I've done a search but can't find anything on this topic. I'm wanting to execute dos commands from my program. ...

  1. #1
    Zaarin
    Guest

    Question Executing shell/dos commands

    I've done a search but can't find anything on this topic.

    I'm wanting to execute dos commands from my program. In particular the "cls" (clear screen) command.

    Any help would be appreciated.

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    #include <stdlib.h> or <cstdlib>

    system("cls");
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Zaarin
    Guest
    Perfect, thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. executing commands
    By cstudent in forum C Programming
    Replies: 2
    Last Post: 04-24-2008, 02:59 AM
  2. Executing DOS commands from inside an image
    By Moony in forum C Programming
    Replies: 6
    Last Post: 03-16-2008, 12:40 PM
  3. Run Error, Commands Executing Simultaneously..
    By MistuRaz in forum C Programming
    Replies: 3
    Last Post: 12-10-2006, 03:10 AM
  4. Executing system commands cross platform
    By markucd in forum C++ Programming
    Replies: 6
    Last Post: 11-04-2005, 07:56 AM
  5. Replies: 1
    Last Post: 03-11-2003, 04:36 PM

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