Search a file in PATH environment variable

Category:
Files and Directories
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
This code uses de Path environment variable to search a file and return the complete filename if it exists or an empty string if it doesn't exists. Thanks to Waty Thierry for the FileExists function. Thanks and sorry for my english.

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

Declarations:

Code: