Display Chosen Files From the Common Dialogue
Category:Files and Directories
Version Compatibility: Visual Basic 6, Visual Basic Script
This VBScript snippet shows you how you can instantiate and open the common dialogue control familiar to VB developers. It will then display which file was chosen, or if the user cancelled. Keep in mind, in VBScript, this will not be as fast as running it in VB6.
Instructions: Copy the declarations and code below and paste directly into your VB project.