#include <shlwapi.h>
CString Arguments = PathGetArgs(GetCommandLine()); // 取到参数
PathRemoveArgs(GetCommandLine());
CString Execute = GetCommandLine(); // 取到可执行文件完整路径
CString FileName = PathFindFileName(GetCommandLine()); // 取到文件名
PathRemoveFileSpec(GetCommandLine());
CString Path = GetCommandLine(); // 取到路径名