请问如何简单编写打开文件夹的代码?就像frontpage新建网站时设定文件夹一样。 请问如何简单编写打开文件夹的代码?就像frontpage新建网站时设定文件夹一样。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用opendialog1然后 if opendialog1.execute then ............... 前面加:uses shellapi;假如你在edit1中输入文件或文件夹名:var: rstr:pchar;begin rstr:=pchar(edit1.text); shellexecute(handle,'open',pchar(rstr),nil,nil,SW_MAXIMIZE);end;//没在delphi中写的,你自己看看吧 !相信你能搞定的 use FileCtrlvar Dir: string;begin Dir := ''; if SelectDirectory('','',dir) then Caption := Dir;end; 读取颜色值 WIN2000下调用ExitWindowsEx关机问题 【MIDAS问题醒目】动态库DLL中使用tSocketconnection,你用过没有 如何在DBGRID组件中实现EXCEL数据冻结的功能 这个贴不应该贴在这,但没办法 怎样使数据库字段值为零的数据在报表中显示为空? 我想在dbgrid里显示复选框,该怎么做? 谁愿意帮我,我的qq号是:50394572 我要在状态栏实时显示时间,什么办法最好? 如何在CANVAS 上画虚线框,但不破坏原有的图形.? 如何编写MyIE2的Toolbar com插件 高手还在吗?几个棘手的问题!高分相送
然后 if opendialog1.execute then ...............
假如你在edit1中输入文件或文件夹名:
var: rstr:pchar;
begin
rstr:=pchar(edit1.text);
shellexecute(handle,'open',pchar(rstr),nil,nil,SW_MAXIMIZE);
end;//没在delphi中写的,你自己看看吧 !相信你能搞定的
Dir: string;
begin
Dir := '';
if SelectDirectory('','',dir) then
Caption := Dir;
end;