效果就像ie下载完毕后的大开文件夹马上给分

解决方案 »

  1.   

    ShellExecute(NULL,"open",
    "C:\\windows\\system32\\page.txt ","","",SW_SHOW );
      

  2.   

    ShellExecute(this->GetSafeHwnd(), "explore","C:\\windows\\system32", NULL, NULL, SW_SHOWNORMAL);
    查看该目录。
    想说一句,资源管理器不能打开文本文件,要打开请用写字板之类的文本编辑器,
    用默认得编辑器打开该文件
    ShellExecute(this->GetSafeHwnd(), "open","C:\\windows\\system32\\page.txt", NULL, NULL, SW_SHOWNORMAL);
      

  3.   

    打开文件夹
    ShellExecute(NULL, "open", "c:\\folder\\", 0, 0, SW_SHOW);
      

  4.   

    CString strTemp;
    CString strPath="C:\\windows\\system32\\page.txt";//要打开的文件strPath.MakeReverse();
    strPath= strPath.Right(strPath.GetLength() - strPath.Find('\\'));
    strPath.MakeReverse();//得到文件所在的目录char buf[MAX_PATH];
    GetWindowsDirectory(buf,MAX_PATH);//得到系统目录strTemp=buf;
    strTemp+="\\explorer.exe /e,";
    strTemp+=strPath;
    MessageBox(strTemp);
    WinExec(strTemp,SW_SHOW);
      

  5.   

    shilong(星矢の诗龙) :我是要想ie下载完毕后的<打开文件夹>,然后打开文件所在的文件夹,并且焦点在那个文件上