Toon posts:

[DELPHI] App.Path returnen?

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hoi,

hoe kan ik in Delphi (6 Enterprise Edition) het pad returnen waarin mijn project/exe staat? (In visual basic kan dit met App.Path)

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

ParamStr(0); geeft exe dir + exe naam zelf.

ExtractFilePath(ParamStr(0)); geeft je exe dir.


(uit het hoofd)

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • whoami
  • Registratie: December 2000
  • Laatst online: 22:31
code:
1
Application.ExeName

Geeft de naam van de exe terug van de applicatie en bevat ook het pad waar de exe in staat.

https://fgheysels.github.io/


Verwijderd

code:
1
2
3
4
5
6
var
  Path
begin
  path := extractfilepath(Application.ExeName);
  showmessage(path);
end;

Check this out

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Op vrijdag 02 november 2001 21:32 schreef De_Vraag_Der_Vragen het volgende:
code:
1
2
3
4
5
6
var
  Path
begin
  path := extractfilepath(Application.ExeName);
  showmessage(path);
end;

Check this out
code:
1
ShowMessage(ExtractFilePath(ParamStr(0)));

:)

"The shell stopped unexpectedly and Explorer.exe was restarted."