How to run DOS commands from c++

This is a discussion on How to run DOS commands from c++ within the C++ Programming forums, part of the General Programming Boards category; How does one run dos commands from a c++ program, there's a system() function but it doesn't work....

  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,789
    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,831
    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, 01: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-19-2001, 12:05 AM

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