UINT WinExec( LPCSTR lpCmdLine, // address of command line
UINT uCmdShow // window style for new application
);
WinExec('c:\program files\abc.exe',SW_SHOWNORMAL);
UINT uCmdShow // window style for new application
);
WinExec('c:\program files\abc.exe',SW_SHOWNORMAL);
解决方案 »
- delphi serversocket接收大量字符串时提示错误
- 求助:实现跟随鼠标的FORM窗口
- cxgrid导出到excel时,怎样才能不包括footer
- 关于在ACTIVEFORM中调用WORD的,每次运行到第9次时就报错。
- 关闭 事件
- 求教:如何取得已有内容Word文件内的Header标注的焦点,并且修改里面内容的方法
- 怎样将一段文字保存到数据库中
- 据说教育部的网络程序员考试在6月份开考,有谁知道关于这次考试的情况?
- Delphi的软件如何发布,我用InstallSheild Borland Limited根本不能行!
- 这两句怎么理解?
- 怎样做一个像智能拼音输入法一样的软件?
- 如何分月统计费用并在dbgrid中显示出各月记录(统计值)?
uses shellapi
2.
ShellExecute(0, 'open', 'Notepad.exe', nil, nil, SW_SHOW);
SW_HIDE SW_MAXIMIZE SW_MINIMIZE Minimizes SW_RESTORE
第二个参数是调用方式!
同意该方法
begin
winexec(opendialog.filename,0) ;
end;2。ShellExecute(0, 'open', 'Notepad.exe', nil, nil, SW_SHOW);
(copy from lizhenjia(暴雪) )3. 如果你的意思是调用程序来打开某类数据的话,就用ole容器吧!