Thread: DOS Commands

  1. #1
    Unregistered
    Guest

    DOS Commands

    How can I incorporate/execute DOS commands into my program?
    For example, if I want to change the screen color at the command prompt I would type "color 03" or whatever. How can I do this from my program?

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    114
    Next time, search the forum before u ask.

    To answer your question:

    #include <stdlib.h>
    system("color 3");

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Executing DOS commands from inside an image
    By Moony in forum C Programming
    Replies: 6
    Last Post: 03-16-2008, 12:40 PM
  2. DOS commands using C++
    By rusty0412 in forum C++ Programming
    Replies: 5
    Last Post: 07-11-2003, 04:56 PM
  3. Dos commands hehe
    By Carp in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-17-2003, 02:51 PM
  4. DOS Commands
    By Zuul in forum C++ Programming
    Replies: 11
    Last Post: 01-04-2002, 04:41 PM
  5. dos commands in c++
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-18-2001, 11:05 PM