Thread: Deleting Files

  1. #1
    Registered User
    Join Date
    May 2003

    Deleting Files

    How can I delete local files without opening a command prompt?

  2. #2
    King of the Internet Fahrenheit's Avatar
    Join Date
    Oct 2001
    Straight from MSDN:

    The DeleteFile function deletes an existing file.

    BOOL DeleteFile(
    LPCTSTR lpFileName // file name

  3. #3
    Registered User
    Join Date
    Jan 2003
    Or you could try using remove() from <cstdio>.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with loading files into rich text box
    By blueparukia in forum C# Programming
    Replies: 3
    Last Post: 10-19-2007, 12:59 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. fopen vs. _open (for BIG image files)
    By reversaflex in forum C Programming
    Replies: 3
    Last Post: 04-01-2007, 12:52 AM
  4. Permanently deleting files
    By Yasir_Malik in forum Windows Programming
    Replies: 1
    Last Post: 08-01-2006, 10:07 PM
  5. deleting files not in fstream?
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-09-2001, 01:36 PM