Change the Extension of Files in a Specified Folder

Category:
Files and Directories
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic 6

More information:
This function will allow you to change the extension of files within a specified folder. You can either change the name of all files, or files with a specified extension. A reference to the Scripting Runtime is required. See code comments for details and example.

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

Declarations:

Code: