WCHAR szPath[MAX_PATH]; // 获得系统目录 GetWindowsDirectoryW( szPath, sizeof(szPath) ); // 格式化文件路径 wcscat( szPath, L"//123.txt" );