Thread: Didn't succeed with the exec..()

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

    Unhappy Didn't succeed with the exec..()

    i still haven't figured out how to run dos commands like del, copy etc using exec.. and system(). Please provide some code or other commands.

  2. #2
    Registered User ski6ski's Avatar
    Join Date
    Aug 2001
    Posts
    133
    I have only used a few system() commands. Here is how the system() command should be formatted. You can replace myprog.exe with del or copy I assume. I have only used myprog.exe and cls.
    C++ Is Powerful
    I use C++
    There fore I am Powerful

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to force a function to never return...like exec() does it
    By creeping death in forum C Programming
    Replies: 7
    Last Post: 03-28-2009, 01:08 PM
  2. Exec functions
    By Yannick in forum C Programming
    Replies: 15
    Last Post: 01-03-2009, 11:05 AM
  3. which exec() to use...?
    By theMethod in forum C Programming
    Replies: 1
    Last Post: 10-07-2008, 08:02 PM
  4. Running 'exec' twice in one UNIX shell script
    By Zughiaq in forum Tech Board
    Replies: 2
    Last Post: 05-03-2003, 12:04 AM
  5. problem with an array of strings in C
    By ornamatica in forum C Programming
    Replies: 14
    Last Post: 05-01-2002, 06:08 PM