Returns the path of the application executable
Source position: msesysintf.inc line 36
function sys_getapplicationpath: filenamety; |
Returns the path of the application executable.
This is one of several simple, parameterless functions returning information about the system and the current user; see also sys_getcurrentdir, sys_getapphomedir, sys_getuserhomedir, sys_getusername, sys_gettempdir, sys_getutctime, sys_getlocaltime, sys_localtimeoffset and sys_getlangname.
uses sysutils, msetypes, msesysintf, msesystypes; var lpath: msestring; begin lpath := sys_getapplicationpath; writeln('sys_getapplicationpath: ', lpath); writeln('sys_getcurrentdir: ', sys_getcurrentdir); writeln('sys_getapphomedir: ', sys_getapphomedir); writeln('sys_getuserhomedir: ', sys_getuserhomedir); writeln('sys_getusername: ', sys_getusername); writeln('sys_gettempdir: ', sys_gettempdir); writeln('sys_getutctime: ', datetimetostr(sys_getutctime)); writeln('sys_getlocaltime: ', datetimetostr(sys_getlocaltime)); writeln('sys_localtimeoffset: ', datetimetostr(sys_localtimeoffset)); writeln('sys_getlangname: ', sys_getlangname); end.