removing contents of a folder

This is a discussion on removing contents of a folder within the C++ Programming forums, part of the General Programming Boards category; [I have posted this question before, but that was ages ago...so here it is....] How do you remove the contents ...

  1. #1
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052

    Thumbs up removing contents of a folder

    [I have posted this question before, but that was ages ago...so here it is....]

    How do you remove the contents of a folder instead of the actual folder itself (I am using Dev C++ and I would like to know how to do it in a console application - not windows. Also, could you please state the header file (eg. <fstream.h> if you answer).

    I know of one way: remove("C:\\folderName"); but this only deletes the actual folder, not the contents...

    Thanks
    -Chris

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> but that was ages ago

    Well, actually 5 days ago. Here's the link.

    http://www.cprogramming.com/cboard/s...&threadid=1181

    If you go to your profile, there is an option to search for your previous messages.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    oh ok. Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 04-29-2009, 12:46 PM
  2. Deleting contents of a folder
    By Tjm7777 in forum C Programming
    Replies: 8
    Last Post: 04-14-2009, 07:40 AM
  3. Folder removing for an uninstaller
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 03-29-2002, 08:55 AM
  4. Replies: 12
    Last Post: 01-23-2002, 06:56 PM
  5. removing an unwanted system folder
    By EvenFlow in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 10-22-2001, 03:04 AM

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