Windows Programming/File Management  From Wikibooks, open books
for an open world < Windows Programming Jump to: navigation,
search  This chapter will discuss some of the details of file
and directory management. Some topics discussed will include
moving and deleting files and directories, enumerating files,
locking files, encrypting files, and accessing the Recycle Bin.
File Attributes[edit]  File attributes can be used to write-
protect, hide, and un-hide files, or as behind-the-scenes file
maintenance. This information can be accessible using the
GetFileAttributes function. The attributes are called Read Only,
Hidden, Archive, and System, and are described below:  Read
Only: A file that is marked Read Only cannot be altered. It can
be read, but it cannot be changed or deleted.  Hidden: By
default, hidden files do not appear in a directory listing.
Archive: The Archive attribute can be used to selectively back
up or copy files; it is most helpful in DOS.  System: System
files are files flagged for use by t