Point to a File in your Applications Directory

Category:
Files and Directories
Type:
Snippets
Difficulty:
Beginning
Author:
Gavin Bollard

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
This is something most people just rewrite over and over again. I decided to create a quick routine for pasting instead.

It's useful to point an application to an INI file in it's own directory especially for Network Apps which don't want to use Local Registry Settings. But it can be used to point to any file in the application's current directory.

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

Declarations:

Code: