Peter King
Member
- Joined
- Sep 11, 2006
- Messages
- 15
- Programming Experience
- Beginner
Hi,
My program needs to determine the directory in which the application's executable and associated files are found. I use the following on loading the start form:
CurrentDir = System.IO.Directory.GetCurrentDirectory()
to get the directory path. However, it works only when the executable is run from the directory it resides. If the executable is put on the desktop or anywhere that is out of its directory, it does not work.
Anyone can help please?
Peter
My program needs to determine the directory in which the application's executable and associated files are found. I use the following on loading the start form:
CurrentDir = System.IO.Directory.GetCurrentDirectory()
to get the directory path. However, it works only when the executable is run from the directory it resides. If the executable is put on the desktop or anywhere that is out of its directory, it does not work.
Anyone can help please?
Peter