头都大了!!请教用ShellExecute怎么传递字符串给另一程序啊?

yayaniuniu502 2005-09-19 04:47:42
ShellExecute(hWnd,"open","C:\\Documents and Settings\\Administrator\\桌面\\86days\\receiver1\\receiver1\\Debug\\receiver1.exe",0,0,2);

我想把"c:\\a\\b"传递给C:\\Documents and Settings\\Administrator\\桌面\\86days\\receiver1\\receiver1\\Debug\\receiver1.exe
该怎么写啊?
...全文
221 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
phisherr 2005-09-26
  • 打赏
  • 举报
回复
你是不是把ShExecInfo.fMask的属性设置成了SEE_MASK_NOCLOSEPROCESS?

可以改成SEE_MASK_NO_CONSOLE
yanedanny 2005-09-20
  • 打赏
  • 举报
回复
"\"c:\\\\a\\\\\b""
yayaniuniu502 2005-09-20
  • 打赏
  • 举报
回复
To:winwinter
你说的方法我已经试过了,还是不行,有没有其他的方法啊?
吹泡泡的小猫 2005-09-19
  • 打赏
  • 举报
回复
把"\"c:\\a\\b\"",
换成
"c:\\a\\b",
phisherr 2005-09-19
  • 打赏
  • 举报
回复
up
winwinter 2005-09-19
  • 打赏
  • 举报
回复
ShellExecute(hWnd,"open","\"C:\\Documents and Settings\\Administrator\\桌面\\86days\\receiver1\\receiver1\\Debug\\receiver1.exe c:\\a\\b\"",0,0,SW_SHOW);
这样可以吗?
yayaniuniu502 2005-09-19
  • 打赏
  • 举报
回复
我想传字符串"\"c:\\a\\b\"过去哈
yayaniuniu502 2005-09-19
  • 打赏
  • 举报
回复
出错:c:\a\b中包含无效的路径。
怎么解决啊?谢谢!
NetDNASupport 2005-09-19
  • 打赏
  • 举报
回复
ShellExecute(hWnd,"open","C:\\Documents and Settings\\Administrator\\桌面\\86days\\receiver1\\receiver1\\Debug\\receiver1.exe","\"c:\\a\\b\"",0,SW_SHOW);

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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