
be executed. If the name of the executable file in the lpCmdLine
parameter does not contain a directory path, the system searches for the
executable file in this sequence:
The directory from which the application loaded.
The current directory.
The Windows system directory. The
GetSystemDirectory
function retrieves the path of this directory.
The Windows directory. The
GetWindowsDirectory
function retrieves the path of this directory.
The directories listed in the PATH environment variable
com.exe路径对不对?写成绝对路径试试。com.exe这个exe是不是个轮野袭茄有效的可执行程序,双击能腊禅喊运行起来嘛
在vc中调用一般的.exe很简单,用一个函数就可以了:WinExec("D:\\Path\\Path\\XXX.exe",1)
或者是:ShellExecute((HWND)GetParent(),"open","D:\\Path\\Path\\XXX.exe",NULL,NULL,SW_SHOWNORMAL)
(如果要具体了解这两个老锋函数请求助于msdn!)
但扮卖是在调用由Matlab生成的.exe时,必须侍缺晌要先设置成当前路径,用到下面的函数:
SetCurrentDirectory("D:\\Path\\Path")
至于为什么我也不清楚,请知道的各位大虾给指点一下!o(∩_∩)o...
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)