Thread: removing contents of a folder

  1. #1
    Refugee face_master's Avatar
    Join Date
    Aug 2001

    Thumbs up removing contents of a folder

    [I have posted this question before, but that was ages 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...


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

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

    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
    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, 09:55 AM
  4. Replies: 12
    Last Post: 01-23-2002, 07:56 PM
  5. removing an unwanted system folder
    By EvenFlow in forum A Brief History of
    Replies: 7
    Last Post: 10-22-2001, 03:04 AM