本文整理自网络,侵删。
if StrLen(PChar(filePathEdit.Text)) > 0 then begin if ShellExecute(Handle, 'open', PChar(filePathEdit.Text), nil, nil, SW_SHOWNORMAL) <= 32 then begin //www.delphitop.com MessageDlg('无法执行请求的操作.' + #13#10 +'确保键入的名称正确.', mtError, [mbOK], 0); Exit; end; Close; end;
相关阅读 >>
Delphi application.processmessage作用
Delphi2010安装twordapplication控件
Delphi net.httpclient用最精简的代码获取网页数据
更多相关阅读请进入《Delphi》频道 >>