1, view the registry information associated with. LNK, and save the following code to A.bat run:
C # code REG Query hkcr.lnk/s > "%userprofile%desktopregquery.txt" &start Notepad%userprofile%deskt OpRegQuery.txt " This code finds the settings for the. lnk (shortcuts) in the registry, saves the search results to the RegQuery.txt file on the desktop, and then opens the file. 2, to view the search information, my information is as follows: RegQuery.txt Hkey_classes_root.lnk (Default) REG_SZ Lnkfile Hkey_classes_root.lnkshellex hkey_classes_root.lnkshellex{000214ee-0000-0000-c000-000000000046} ( Default) REG_SZ {00021401-0000-0000-c000-000000000046} hkey_classes_root.lnkshellex{ 000214f9-0000-0000-c000-000000000046} (Default) REG_SZ {00021401-0000-0000-c000-000000000046} HKEY_ classes_root.lnkshellex{00021500-0000-0000-c000-000000000046} (Default) REG_SZ {00021401-0000-0000- c000-000000000046} HKEY_CLASSES_ROOT.LNKSHELLEX{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1} (Default) REG_ SZ {00021401-0000-0000-c000-000000000046} hkey_classes_root.lnkshellnew Handler REG_SZ {CEEFEA1B-3E29-4EF1-B34C-FEC79C4F70AF} IconPath REG_EXPAND_SZ%systemroot%system32shell32.dll,-16769 ItemName REG_SZ @shell32. dll,-30397 MenuText REG_SZ @shell32. dll,-30318 Nullfile REG_SZ Command REG_SZ R Undll32.exe appwiz.cpl,newlinkhere%1 -------> Bold ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ Hkey_classes_root.lnkshellnewconfig Dontrename REG_SZ Bold line That's the problem, shellnew command if the above sentiment , then you need to modify it. (The above registry condition is applicable to XP ...). 3, fix the problem (only need to remove the Command line), save the following code to B.bat, run: C # code REG delete hkcr.lnkshellnew/v command/f &N Bsp This line of code deletes the command line in Shellnew, and then right--> The new-> shortcut when it's done. I've been able to create a new shortcut successfully. 4, after fixing the problem the LNK related registry information is as follows: RegQuery.txt writes Hkey_classes_root.lnk (default) REG_SZ Lnkfile Hkey_classes_root.lnkshellex hkey_classes_root.lnkshellex{000214ee-0000-0000-c000-000000000046} (default) REG_SZ {00021401-0000-0000-c000-000000000046} &nbsP hkey_classes_root.lnkshellex{000214f9-0000-0000-c000-000000000046} (default) REG_SZ {00021401-0000-0000- c000-000000000046} hkey_classes_root.lnkshellex{00021500-0000-0000-c000-000000000046} (default) REG_SZ { 00021401-0000-0000-c000-000000000046} HKEY_CLASSES_ROOT.LNKSHELLEX{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1} (default) REG_SZ {00021401-0000-0000-c000-000000000046} hkey_classes_root.lnkshellnew Handler REG_SZ {CEEFEA1B-3E29-4EF1-B34C-FEC79C4F70AF} IconPath REG_EXPAND_SZ%systemroot%system32shell32.dll,-16769 I Temname REG_SZ @shell32. dll,-30397 MenuText REG_SZ @shell32 dll,-30318 Nullfile REG_SZ HKEY_CLA Sses_root.lnkshellnewconfig Dontrename REG_SZ ----EOF----