wchar_t buf[0x1000]; wsprintf(buf, L"/select, %s", fn.c_str()); ShellExecute(0, L"open", L"explorer.exe", buf, 0, SW_SHOWNORMAL);
ShellExecute更多用法可以参考:https://www.cnblogs.com/blogpro/p/11343975.html