Delphi GetDir 获取指定驱动器的当前路径名


本文整理自网络,侵删。

 //获取指定驱动器的当前路径名 GetDir
var
dir: string;
b: Byte;
begin
b := 0;
GetDir(b,dir);
ShowMessage(dir); //

//第一个参数: 1、2、3、4...分别对应: A、B、C、D...
//0 是缺省驱动器
end;

相关阅读 >>

Delphi using windows print spooler to run your file

Delphi2010中tresourcestream流使用

tclientsocket和tserversocket用法

Delphi 从字符串中提取单词、从字符串中提取汉字的函数

在rad studio Delphi或c++安卓应用中使用自定义java库

Delphi如何获取句柄?

Delphi 获取北京时间

Delphi webbrowser设置自己定义user-agent

Delphi exe文件自效验

Delphi 怎样判断windows的dpi大小?

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...