Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 Questions

Status
Not open for further replies.

kristof

Programmer
Jun 2, 2000
234
BE
Hi all,

1. How do I retrieve the full path of the directory your application is running on? I am using GetApplicationPath but it makes the directory names shorter using ~ (8 character notation) and that seems to give errors. What I want is the full, actual path.

2. Is it possible to stop the loading of a textfile into a memo field? (I mean with Delphi, not using something like ctrl-alt-del)

Thanks,

Kristof
 
1. GetFileDir(application.exename) might help (though give no warranty).
2. Only if you write your own loading proc or rebuild part of vcl
 
Q1:
dir := ExtractFilePath(Application.EXEName);

Q2:
Do as December suggests.

lou
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top