我用WinExec(SM.exe C:\\Program Files\\Temp.txt, SW_SHOWNORMAL);
结果程序在Program Files中间切断,提示C:\\Program找不到。
请问该如何写?
结果程序在Program Files中间切断,提示C:\\Program找不到。
请问该如何写?
解决方案 »
- DetourCreateProcessWithDll 的参数 C:\\windows\\notepad.exe 是什么意思,好难明白,附代码!!!谢999辈子
- 创建窗口的问题
- 链接错误nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in libcpd
- 如何在MENU 下拉菜单中显示一个 RECT 或者 CIRCLE ???
- 求助,dxva2是否支持同时解码多个视频
- 简单问题---在线等待
- 关于一个Windows内存管理的问题:
- 高分求教。自已用vb写的一个控件,如何通过activex提交图片到sql server数据库中?
- !!! COM转到DCOM的问题? !!!
- 如何使背景音乐循环播放
- 为什么不加这个messagebox,消息就传不到啊???
- 修改动态添加组建的字体
If a malicious user were to create an application called "Program.exe" on a system, any program that incorrectly calls WinExec using the Program Files directory will run this application instead of the intended application.To avoid this problem, use CreateProcess rather than WinExec. However, if you must use WinExec for legacy reasons, make sure the application name is enclosed in quotation s as shown in the example below.WinExec("\"C:\Program Files\MyApp.exe\" -L -S", ...)