Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

determining the current directory when my program starts up.

Well, you know how when you first start up a program and open a OpenDialog box, the directory is set at the directory  that your program resides in. I want to be able to capture that information (ie. the current, 'starting' directory') in a string variable and hold onto it. How do I do that? I trie dthe InitialDir property of OpenDialog, that doesn't work. There must be some property or field that is set to this current directory value but I just don't know which one it is??
  By the way my e-mail address to get back to me has changed. it's now aztec@auracom.com
0
aztec
Asked:
aztec
1 Solution
 
aztecAuthor Commented:
Don't forget... new e-mail address: aztec@auracom.com
0
 
ygolanCommented:
The GetCurrentDir function will return your current directory.

On the other hand, if you need to know the directory that your application EXE is in, use ExtractFilePath(Application.ExeName)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now