Thread: DOS commands using C++

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    9

    DOS commands using C++

    Is it possible to run specific DOS commands from a C++ program?

  2. #2
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    In <cstdlib>/<stdlib.h> you can use system(const char*); to execute system commands.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  3. #3
    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]

  4. #4
    ___
    Join Date
    Jun 2003
    Posts
    806
    That Faq has everything in there. You should take it out or people will eventually stop asking questions
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Yeah, I know. All I do these days is post FAQ links, close peoples thread, and go alot. Ahh.... I wish for the old days when I actually wrote code
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  6. #6
    ___
    Join Date
    Jun 2003
    Posts
    806
    You need to remove the faq and change the background font while your at it. This is like reading a book when on the site. You should change the background to something darker so its easier on the eyes and maybe a blood red (or another that is darker) to make the font visable. It gets hard on the eyes after a while of staring at a book style website.
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

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 hehe
    By Carp in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-17-2003, 02:51 PM
  3. DOS Commands
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 05-13-2002, 03:40 AM
  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