ShellExecute打开文件后,如何不显示路径
代码如下:
CString strPath;
::GetModuleFileName( NULL, strPath.GetBuffer(MAX_PATH), MAX_PATH );
strPath.ReleaseBuffer();
strPath = strPath.Left(strPath.ReverseFind(_T('\\')));
// AfxMessageBox(strPath);
ShellExecute(NULL,"open", strPath + "\\直径120mm第一道次椭圆型孔型图.dwg",NULL,NULL,SW_SHOWNORMAL);
打开的AutoCAD制图文件后,文件标题是“D:\test\debug\直径120mm第一道次椭圆型孔型图.dwg”。
请问如何编码才能不显示这个路径呢?即文件标题是“直径120mm第一道次椭圆型孔型图.dwg”,或者是什么都没有!
请教了。。。