Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21297

[RESOLVED] Getting the path to a file

$
0
0
Is there is way to get the path of a file that is not in the App.Path?

I have a folder that contains other folders that contain sub projects for each component of the main project. A file is in the root folder of the project but each sub project requires access to that file. Normally, if the file was in the same folder as the project I would simply use App.Path.

Open App.Path & "\some folder\some other folder\file.txt"

My question is how can I access the file without hard coding it's path in each of the sub projects?

Viewing all articles
Browse latest Browse all 21297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>