Thread: How to run DOS commands from c++

  1. #1
    I'm Back
    Join Date
    Dec 2001
    Posts
    556

    Question How to run DOS commands from c++

    How does one run dos commands from a c++ program, there's a system() function but it doesn't work.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Do a search on the spawn funcs, or.....read the FAQs -> Answer to so many questions

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    The system() function does work, however, in the FAQ you'll find why you shouldn't use it.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Run dos program invisibly?
    By chico1st in forum Windows Programming
    Replies: 2
    Last Post: 01-07-2009, 10:07 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. how to run dos command programatically
    By Jasonymk in forum C++ Programming
    Replies: 11
    Last Post: 01-02-2003, 09:00 PM
  4. dos commands in c++
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-18-2001, 11:05 PM