Solved

determining the current directory when my program starts up.

Posted on 1997-08-09
2
149 Views
Last Modified: 2010-05-18
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
Comment
Question by:aztec
2 Comments
 

Author Comment

by:aztec
ID: 1341041
Don't forget... new e-mail address: aztec@auracom.com
0
 
LVL 1

Accepted Solution

by:
ygolan earned 50 total points
ID: 1341042
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question