本文整理自网络,侵删。
//获取当前文件夹 GetCurrentDir
var
dir: string;
begin
dir := GetCurrentDir;
ShowMessage(dir); //C:\Documents and Settings\wy\My Documents\RAD Studio\Projects
end;
=============
function GetCurrentDir: string;
begin
GetDir(0, Result);
end;
相关阅读 >>
Delphi kbmmemtable的简单应用(增删改查示例)
Delphi 在firemonkey应用程序中使用torientationsensor获取设备倾斜和指南针航向
Delphi 如何在程序中动态设置墙纸(使用iactivedesktop接口)
Delphi strutils.leftstr、strutils.rightstr - 提取左右字符串
更多相关阅读请进入《Delphi》频道 >>