分数大放送

1978322 2000-06-19 06:15:00
谁知道在DELPHI下怎么调用EXE文件(可执行文件)
...全文
127 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
jll 2000-06-20
  • 打赏
  • 举报
回复
还可以使用WinExec...
xlili 2000-06-19
  • 打赏
  • 举报
回复
打开一个网枝:
shellexecute(0,nil,'http://www.csdn.net',nil,nil,SW_NORMAL);
发email:
shellexecute(0,nil,'mailto:brute@21cn.com',nil,nil,SW_NORMAL);
jacer 2000-06-19
  • 打赏
  • 举报
回复
来晚了。 :(

把函数声明贴出来吧:
HINSTANCE ShellExecute(

HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
);

可以这样用:
ShellExecute(0, Nil, 'notepad.exe', Nil, Nil, SW_NORMAL);
H999 2000-06-19
  • 打赏
  • 举报
回复
uses shellapi;

调用:
Shellexecute(handle,'',filename,'','',SW_SHOW);

5,379

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧