Click to See Complete Forum and Search --> : directory path


avatar
February 15th, 2000, 12:52 PM
I want to be able to find out the path from which my program is running. This way I can easily write a registry entry to make it run at startup, where ever it's installed. And no I don't want to have an installation program. Anybody help??

Cakkie
February 15th, 2000, 12:56 PM
very simple, just use App.path
One drawback however, it specifies a directory, not ending with a \ unless it is a root.

eg
c:\temp <-- not trailing \
c:\ <-- trailing \ !!!

Tom Cannaerts
slisse@planetinternet.be

The best way to escape a problem, is to solve it.

The Matrix
February 15th, 2000, 02:28 PM
i am not sure if you no how to write to the regestry, go to this url if you want to no how to write to the regestry:
http://www.vbcode.com/asp/showsn.asp?theID=1322