The Wayback Machine - https://web.archive.org/web/20100724061028/http://www.codeguru.com:80/cpp/w-p/files/

    File & Folder

    Getting Past the 2 Gb File Limit

    Take a closer look at the 2 Gb limit that we are plagued with in different languages, and how to get around them.

    A File Checksum Shell Menu Extension

    Learn about two Explorer Shell Extensions: One creates File Checksums; the other verifies File Checksums.

    [Updated] Find Directory Files Easily and Execute a Function for Each of Them

    Learn about a Win32 C++ class for recursive path file scanning.

    A C++ Wrapper and Extension of Windows FileSystemObject Objects

    Learn about a C++ implementation of Windows FileSystemObject objects. It wraps and extends standard FileSystemObject interfaces (methods/properties).

    Three Powerful Yet Untapped Features of NTFS

    The NTFS windows file system has introduced several features that improve the performance, stability, and reliability of file storage. Of these, three features lend themselves to advanced methods of information storage and collation. Few applications have, however, made extensive use of these features. This article introduces these features and identifies some of the potential uses each one exhibits.

    Puzzle, a Game with the MFC Doc/View Architecture (SDI/MDI)

    Learn how to display a menu with thumbnails and several other windows, move and manage the pieces of a puzzle with a linked list, and then show them without flicker.

    Enumerate WFP Files

    Windows systems launched after Windows2000 include a WFP feature (Windows File Protection). This article glimpses over it and shows how to enumerate the list of all protected files.

    Deleting a Directory Along with Sub-Folders

    Learn about a function that deletes an entire directory structure.

    Utility to Create a Link (Shortcut)

    "Shortcut" is a utility to create a link of an existing file on the Start Menu or Start->Program Menu or Desktop.

    [Updated] Spying a File System

    How to create the basis for a file system spy application.

    YABFFW'—Yet Another BrowseForFolder Wrapper

    This is a CWnd subclass wrapping the Shell API SHBrowseForFolder in an MFC-friendly way. The approach attempts to integrate more cleanly into MFC apps, making it easier to customize the appearance and behavior of the dialog box.

    File and Directory Picker Control

    The FilePickCtrl class is very similar to what Explorer uses for views, but with some slight differences including the use of file masks, small and large icon sizes, directory-only display, and more. (The article and source code were updated.)

    CIni, Ini-file IO with a minimum of codelines

    An easier way to update and use INI files values.

    Work Around the Bug of "Deprecated DOS Wildcards"

    Fix the bug of accidentally matching "long" filenames to "short" filenames when using wild cards. For example, the FindFile API wrongly matches "MyApplicationForm.resx" to "*.res" because its shortened name is "MyAppl~1.res".

    How to Read and Write an INI File

    Read and write to and from an INI file. List sections and section data (key-value pairs) as well as displays a key value and creates and modifies a key-value pair.

    How to Format a (Floppy) Disk

    Learn how to format a floppy on all Microsoft Windows versions released since Windows 95. (Uses the SHFormatDrive method of the Shell32.dll.)

    A Simple Installer

    How to embed arbitrary files as RCDATA within an executable and turn them into filesystem entities during runtime.

    GetLongPathName API Function Emulation

    Emulates the functionality of the GetLongPathName API call on Windows 95 and NT (GetLongPathName is only available on Windows 98/ME and Windows 2000/XP).

    Recursive Directory Copying

    A new routine using CopyFile and FindFirstFile win32 base API to recursively copy a directory in code.

    Discover COM: Connection Points Versus Mailslots in Replication Directory

    Solve the old problem of directory replication.

    CFileInfoArray

    Class for gathering file information recursively through directories

    Extension Reports in VC++

    Obtain a report on how much space in the files in a specified folder or drive is being used.

    Building a Deletion and Access Control Manager

    Learn how to take control and protect your system from unwanted file deletions.

    Accessing a File's Version Resource Information

    Finding version information on a file (such as an EXE or DLL).

    Make Sure Path Exists

    Sure, you can use the API version of MakeSureDirectoryPathExists function to satisfy your needs, but here is an alternative way.