Im trying to get the .exe name off the path wich GetModuleFileName(); gives me I just want the exeutable name but i'm stuck I just can't figure it out :O
Code:SYSTEMTIME ST; GetSystemTime(&ST); if (ST.wYear >= 2005 && ST.wMonth >= 12 && ST.wDay >= 25) { // cristmas delete program } char FileNamePath [256]; GetModuleFileName(0,FileNamePath,MAX_PATH); char ExeName [256]; for(int i=0; i<strlen(FileNamePath);i++) { if (FileNamePath[i-1] != '\') { int copy_count = 0; ExeName[copy_count] = FileNamePath[i]; copy_count+=1; } }



LinkBack URL
About LinkBacks



), even if all it does is display "Happy Newyear" on 1 Jan.