Initial Directory in Delphi

Started by
0 comments, last by furiousp 20 years ago
Does anyone know if there is a function in Delphi that returns the directory path of where the program runs from? i.e. if the program is in C:\Arse\Program.exe I want a function (or how to write one) that returns: ''C:\Arse''
Advertisement
var
path: string;

path := extractfilepath(application.exename);

This topic is closed to new replies.

Advertisement