#include #include int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE hprevinstance , LPSTR lpCmdLine, int cmdShow) { char buf[MAX_PATH + 5]; LPTSTR lplink; GetLongPathName(lpCmdLine, buf, MAX_PATH); lplink = strstr(buf, "へのショートカット.lnk"); if(lplink == NULL) return 0; lstrcpy(lplink, ".lnk"); MoveFile(lpCmdLine, buf); return 0; }