Solved

determining the current directory when my program starts up.

Posted on 1997-08-09
2
159 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

Industry Leaders: 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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month11 days, 1 hour left to enroll

632 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