Program to delete files

This is a discussion on Program to delete files within the Windows Programming forums, part of the Platform Specific Boards category; How would i go about writing a program that deleted files (temp internet files, recent files, emptied recycle bin) there ...

  1. #1
    Drane85
    Guest

    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
    Posts
    4,831
    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, 02:30 PM
  3. need help with menu program and header files
    By DFC in forum C++ Programming
    Replies: 12
    Last Post: 12-07-2005, 11:09 AM
  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

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