system->copy 和 ShellExecute 用法

http://stackoverflow.com/questions/9115574/how-can-you-open-a-file-with-the-program-associated-with-its-file-extension

//浏览器中打开文件
ShellExecute(0, (LPCSTR)"open", (LPCSTR)"iexplore.exe" ,(LPCSTR)"c:\\SmartCTCAPI-TestResults.xml" , 0 , SW_SHOW );
 
//复制文件
system("copy parseXML2HTML.xsl c:\\parseXML2HTML.xsl");

 

 
posted @ 2013-12-10 18:40  宁静世界  阅读(474)  评论(0编辑  收藏  举报