ShellExecute打开文件目录

来源:互联网 发布:redis与mysql的结合 编辑:程序博客网 时间:2024/06/08 12:21

    刚接触C++写Windows应用程序,想打开本地磁盘某个文件目录,google方法如下:

    CString str = _T("E:\\TestDir");       ShellExecute( NULL, _T("open"), _T("explorer.exe"), str, NULL, SW_SHOWNORMAL );


    参考自http://blog.csdn.net/chenlycly/article/details/7366364