Unit 'msesysintf' Package
[Overview][Procedures and functions][Variables][Index] [#msegui]

sys_getapplicationpath

Returns the path of the application executable

Declaration

Source position: msesysintf.inc line 36

function sys_getapplicationpath: filenamety;

Description

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.

Documentation generated on: 2026-10-03