社区
VC.NET
帖子详情
怎么执行 ShellExecute?
xzjxucxx
2020-03-29 05:11:11
我代码里这样写
#pragma comment(lib,"shell32.lib") ShellExecute(0, L"open", L"http://"+SERVER+"/soft", L"",L"",SW_SHOWNORMAL);
他不执行
应该怎么写?
...全文
1847
1
打赏
收藏
微信扫一扫
点击复制链接
分享
下载分享明细
分享
举报
写回复
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
牧童吃五谷
2020-04-17
::ShellExecute(nullptr, L"open", sss, nullptr, nullptr, 1);
打赏
举报
回复
赞
相关推荐
shellexecute
执行
完成,
ShellExecute
执行
前等待?
I have a hopefully quick question: Is it possible to delay execution of
ShellExecute
a little bit?I have an application with autoupdater. After it downloads all necessary files etc, it renames current...
shellexecute
执行
完成_在
执行
ShellExecute
之前等待吗?
它可以运行一个可
执行
文件并有选择地等待它退出。它将返回退出代码:function TSvUtils.FileExecute(ahWnd: Cardinal; const aFileName, aParams, aStartDir: string; aShowCmd: Integer; aWait: Boolean): Integer;...
shellexecute
执行
完成_
ShellExecute
如何使用管理员身份
执行
} else if(dwStatus==ERROR_FILE_NOT_FOUND){ printf("所要
执行
的文件没有找到\n"); } } return 0; } unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, ...
shellexecute
执行
完成_用
ShellExecute
执行
cmd命令遇到的问题总结
1、如果命令中的路径包含空格...(用“\”进行字符转义)2、用变量传命令的时候,要在命令字符开始加上"/c",不然命令不会
执行
。例:strCommand ="/c " +"date";
ShellExecute
(NULL, "open", "cmd", strCommand, NULL, ...
shellexecute
执行
完成_
ShellExecute
—— 运行一个外部程序
首先记得加上头文件
ShellExecute
(0,"open","calc.exe","","",SW_SHOWNORMAL);//调用计算器可能会出现参数类型不兼容的情况,改为:
ShellExecute
(0,(LPCWSTR)L"open",(LPCWSTR)L"CALC.EXE",(LPCWSTR)L"",(LPCWSTR)L"...
发帖
VC.NET
加入
微信扫一扫
点击复制链接
分享社区
下载分享明细
7541
社区成员
2.7w+
社区内容
.NET技术 VC.NET
社区管理员
申请成为版主
帖子事件
创建了帖子
2020-03-29 05:11
社区公告
暂无公告