Skip to main content
GameDev.net gamedev.net
🔒 Locked

Initial Directory in Delphi

Started by furiousp Apr 16, 2004 at 10:15 AM 0 replies 200+ views
Original Post
furiousp
furiousp
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''
Myra Mains
Myra Mains
var
path: string;

path := extractfilepath(application.exename);

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.