Need to get Start Menu Paths in Java
问题 Using java, I would like some code that could get me the paths for: 1) Start Menu for Current User 2) Start Menu for All User I need the answer for both WinXP and Win7. So hopefully there is a general answer that can get me both. 回答1: You have no other choice but to write a DLL and call native Windows API: SHGetFolderPath (NULL, CSIDL_PROGRAMS, NULL, SHGFP_TYPE_CURRENT, &szPathBuffer) SHGetFolderPath(NULL, CSIDL_COMMON_PROGRAMS, NULL, SHGFP_TYPE_CURRENT, &szPathBuffer) If you really need the