社区
Windows SDK/API
帖子详情
如何在程序中处理shellexecute传递的参数?
bloodghost
2004-11-10 09:55:10
ShellExecute(0,nil,'c:\FileOP.exe',PChar(sSaveFile),charSavePath,SW_NORMAL);
我想在FileOP.exe中处理ShellExecute传进的参数"sSaveFile",该怎么写?
...全文
135
3
打赏
收藏
如何在程序中处理shellexecute传递的参数?
ShellExecute(0,nil,'c:\FileOP.exe',PChar(sSaveFile),charSavePath,SW_NORMAL); 我想在FileOP.exe中处理ShellExecute传进的参数"sSaveFile",该怎么写?
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
3 条
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
打赏红包
dreamonce
2004-12-10
打赏
举报
回复
FileOP是你自己的程序不是?
如果是,用Paramstr(1)取
外部程序调用
ShellExecute(0,nil,'c:\FileOP.exe',PChar(sSaveFile),charSavePath,SW_NORMAL);
在FileOP内
ShowMessage(Paramstr(1));
ztenv
2004-11-11
打赏
举报
回复
可以考虑用一下winexec()
海天候
2004-11-10
打赏
举报
回复
ShellExecute(0,nil,'cmd c:\FileOP.exe '+sSavefile,PChar(sSaveFile),charSavePath,SW_NORMAL);
相关推荐
MFC接收外部
程序
执行的
shell
execute
中
传递
的
参数
来执行不同操作
大家都知道,我们可以通过
shell
execute
函数来执行别人的
程序
,但如果别人的
程序
通过
shell
execute
来执行我们自己的
程序
,而且通过
传递
过来的
参数
来执行不现效果呢? 首先,来看看
Shell
Execute
函数 使用该函数时,需添加该头文件: #include
Shell
Execute
函数原型及
参数
含义如下:
Shell
Execute
( hWnd: H
cvi调用其他exe_求助,一个简单问题,如何在c++
中
调用其他exe
程序
展开全部
Shell
Execute
不仅可以运行EXE文件62616964757a686964616fe59b9ee7ad9431333339663362,也可以运行已经关联的文件。
Shell
Execute
函数原型及
参数
含义如下:HINSTANCE
Shell
Execute
(HWND hwnd, LPCTSTR lpOperation, LPCTSTR lpFile, LPCTSTR lpParame...
如何在应用
程序
中
启动其他
程序
(三种方法)
个SDK函数: WinExec,
Shell
Execute
,CreateProcess可以实现调用其他
程序
的要求,其
中
以WinExec最为简单,
Shell
Execute
比WinExec灵活一些,CreateProcess最为复杂。 WinExec 两个
参数
,前一个指定路径,后一个指定显示方式。
Shell
Execute
可以指定工作目录,并且还可以寻找文件的关联直接打开不用加载与文件
Shell
Execute
Shell
Execute
Shell
Execute
函数原型及
参数
含义如下:
Shell
Execute
( HWND hwnd, //父窗口句柄 LPCSTR lpOperation, //操作类型 LPCSTR lpFile, //要进行操作的文件或路径 LPCSTR lpParameters, //当lpOperation为“explore”时指定要
传递
的
参数
,通常...
如何在
程序
中
打开另一个
程序
Shell
Execute
的使用方法 Q: 如何打开一个应用
程序
?
Shell
Execute
(this->m_hWnd,"open","calc.exe","","", SW_SHOW ); 或
Shell
Execute
(this->m_hWnd,"open","notepad.exe", "c://MyLog.log","",SW_SHOW ); Q: 如何打开一个同系统
程序
相关连
发帖
Windows SDK/API
Windows SDK/API
Delphi Windows SDK/API
复制链接
扫一扫
1177
社区成员
2.2w+
社区内容
Delphi Windows SDK/API
社区管理员
加入社区
获取链接或二维码
帖子事件
创建了帖子
2004-11-10 09:55
社区公告
暂无公告