Delphi 获取所有磁盘盘符列表


本文整理自网络,侵删。

 
uses   System.Generics.Collections,
  System.Math, System.IOUtils;


procedure TForm1.Button5Click(Sender: TObject);
var
  Lst: TStringList;
begin
  Lst := TStringList.Create;
  try
  Lst.AddStrings(TDirectory.GetLogicalDrives);
    Memo1.LineS.AddStrings(Lst);
  finally
    FreeAndNil(Lst);
  end;

end;

相关阅读 >>

Delphi 泛型,存放n张图片

Delphi datasnap中间件如何控制长连接的客户端连接?

Delphi为你的窗体有效地提供剪贴板的相关操作

Delphi edit只允许输入数字和小数点

Delphi for 循环输出 a-z

Delphi研究之驱动开发篇(六)--利用section与用户模式程

Delphi windows 编程[12] - 菜单与菜单资源(1-3)

Delphi windows 编程[17] - 更换菜单: loadmenu、destroymenu、setmenu

Delphi tdirectory.tfilterpredicate

Delphi crc算法的实现

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



打赏

取消

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

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

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

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

评论

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