Deleting Files

This is a discussion on Deleting Files within the Windows Programming forums, part of the Platform Specific Boards category; How can I delete local files without opening a command prompt?...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    10

    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
    Posts
    128
    Straight from MSDN:

    The DeleteFile function deletes an existing file.

    BOOL DeleteFile(
    LPCTSTR lpFileName // file name
    );

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    Or you could try using remove() from <cstdio>. http://www.cplusplus.com/ref/cstdio/remove.html

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, 01:59 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 02:30 PM
  3. fopen vs. _open (for BIG image files)
    By reversaflex in forum C Programming
    Replies: 3
    Last Post: 04-01-2007, 01:52 AM
  4. Permanently deleting files
    By Yasir_Malik in forum Windows Programming
    Replies: 1
    Last Post: 08-01-2006, 11:07 PM
  5. deleting files not in fstream?
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-09-2001, 02:36 PM

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