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在设计时设置tstringgrid控件各列的列宽

Delphi windows 编程[1] - 窗体生成的过程一

Delphi xe5 android得到手机的手机号码

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

Delphi清除ie临时文件,历史记录

Delphi utf-8

Delphi 声明指令

Delphi bytestofile

Delphi 十六进制字符串转化成字符串输出hextostr strtohex(Delphi版、c#版)

Delphi xe2模拟键盘按键

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



打赏

取消

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

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

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

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

评论

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