//获取程序运行路径
function GetSelfPath: string;
var
ModuleName: string;
i: Integer;
begin
SetLength(ModuleName, 255);
GetModuleFileName(HInstance, PChar(ModuleName), Length(ModuleName));
i := LastDelimiter('\', ModuleName);
Result := Copy(ModuleName, 1, i);
end;
delphi 获取程序运行路径
最新推荐文章于 2025-04-07 11:02:44 发布