Solved

determining the current directory when my program starts up.

Posted on 1997-08-09
2
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi...Split view - idea? 1 146
Firemonkey Queue list 1 51
Broadcast a message using ICS 2 50
Automatic field translation delphi 10.2 6 45
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

739 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