码迷,mamicode.com
首页 > Windows程序 > 详细

Delphi GetCurrentDir 获取当前文件夹

时间:2018-12-09 18:44:09      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:and   document   ring   project   function   func   current   message   ==   

//获取当前文件夹 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 GetCurrentDir 获取当前文件夹

标签:and   document   ring   project   function   func   current   message   ==   

原文地址:https://www.cnblogs.com/jijm123/p/10092256.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!