GetModuleFileName Function (Windows)
Don't remember if it adds a slash behind the path by default, so you might need to use "\\trololol.exe"Code:char filePath[256] = ""; int len = GetModuleFileName(NULL, filePath, 256); strcat(filePath, "trololol.exe");