Thread: Program to delete files

  1. #1

    Program to delete files

    How would i go about writing a program that deleted files (temp internet files, recent files, emptied recycle bin) there has probably been a post like this before pls post links if so, or to a tutorial
    Thanx in advance

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Use FindFirstFile() and the FindNextFile() with the directory and file mask you want then call DeleteFile() to remove them. Look them up in the help or at MSDN.

    Using the search you'll find example of them in this forum.
    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. how to delete several files at once?
    By Ironic in forum C Programming
    Replies: 6
    Last Post: 04-04-2009, 05:35 PM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  3. need help with menu program and header files
    By DFC in forum C++ Programming
    Replies: 12
    Last Post: 12-07-2005, 12:09 PM
  4. Multi - File Program not finding files
    By johnh444 in forum C++ Programming
    Replies: 2
    Last Post: 07-03-2004, 01:48 AM
  5. My first C++ program with files
    By vasanth in forum C++ Programming
    Replies: 1
    Last Post: 04-11-2002, 10:23 AM