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 randstring 随机字符串

Delphi 在xp/2k 下实现 win+ctrl+del 等键的屏蔽的方法

Delphi程序不受windows日期格式的影响

cnpack sqlite tool 2.04

Delphi 在窗体上创建自己的光标并输入文字

Delphi adoquery 运用

Delphi 代码查询一个json ip 地址的归属地

print documents from Delphi - print pdf, doc, xls, html, rtf, docx, txt

Delphi map file

Delphi stringgrid如何清空

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



打赏

取消

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

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

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

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

评论

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