delphi打开"我的电脑"等特殊文件夹


本文整理自网络,侵删。

 uses ShellAPI;

//打开 C 盘
procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(Handle, 'open', 'Explorer.exe', 'C:\', nil, SW_SHOWNORMAL);
end;

//打开 我的电脑
procedure TForm1.Button2Click(Sender: TObject);
begin
ShellExecute(Handle, 'open', 'Explorer.exe',
'::{20D04FE0-3AEA-1069-A2D8-08002B30309D}', nil, SW_SHOWNORMAL);
end;

//打开 资源管理器
procedure TForm1.Button3Click(Sender: TObject);
begin
ShellExecute(Handle, 'open', 'Explorer.exe',
'/e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}', nil, SW_SHOWNORMAL);
end;

相关阅读 >>

Delphi几个进制相关的代码(hextoint、hextoasc)

Delphi -- gdi+ Delphi如何让 tgpimage 直接从流中加载图片

Delphi xe7 android 实现的在线更新app的一个程序

Delphi webservice 中采用 tsoapattachment 传输文件

Delphi http协议验证访问datasnap rest 服务器

Delphi 取到系统临时文件夹路径

Delphi实现url编码解码函数

Delphi android gps服务

Delphi access数据库 主键

Delphi formatdatetime 显示日期时间

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



打赏

取消

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

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

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

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

评论

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