by HarvestR (5 Submissions)
Category: VB function enhancement
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
If you use App.Path in your program and run the EXE from a CD or a Network Drive, it won't work ! This short code uses API calls to get an always valid program path
Assumes
tested on Win 9x, NT, 2000 and XP
Code Returns
Real Program Path
API Declarationssee in ZIP file
Download App.path replacement that works with CD and Network Drives (3 KB)