A Module of File System Functions

Category:
Files and Directories
Type:
Modules
Difficulty:
Intermediate

Author: Anonymous

Version Compatibility: Visual Basic 6

More information:
This is a small module that I put together based on snippets and other pieces of code. It uses the shell API and can rename, delete, move, copy and delete files based on number of days old. All this code can be found elsewhere as separate modules, all I did was streamline it and combine it into one simple useful module. It can also empty the recycle bin from any drive and set file attributes for folders or files. Just copy the code to a new module and call the functions as needed.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: