Windows 7 system right click can not create a shortcut method

  
1. View the registry information related to .lnk and save the following code to a.bat:
C# code Reg Query HKCR.lnk /S >"%Userprofile%DesktopRegQuery.txt"&Start Notepad " %Userprofile%DesktopRegQuery.txt" This code will look for the .lnk (shortcut) settings in the registry and save the results to the desktop's RegQuery.txt file, then open the file. 2, view the searched information, my information is as follows: RegQuery.txtHKEY_CLASSES_ROOT.lnk (Default) REG_SZ lnkfileHKEY_CLASSES_ROOT.lnkShellExHKEY_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.lnkShellNewHandler REG_SZ {ceefea1b-3e29-4ef1 -b34c-fec79c4f70af}IconPath REG_EXPAND_SZ %SystemRoot%system32shell32.dll,-16769ItemName REG_SZ @shell32.dll,-30397MenuText REG_SZ @shell32.dll,-30318NullFile REG_SZCommand REG_SZ rundll32.exe appwiz.cpl,NewLinkHere %1 ------ ->Bold ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~HKEY_CLASSES_ROOT.lnkShe llNewConfigDontRename REG_SZ A bold line is the problem, if ShellNew's Command is the same, then you need to modify it. (The above registry case is for XP……) 3. Fix the problem (just delete the Command line), save the following code to b.bat, run: C# code reg delete HKCR.lnkShellNew /V Command The /F line of code will delete the Command line in ShellNew, and then right click -> New -> shortcut. I have been able to create new shortcuts. 4. The lnk related registry information after fixing the problem is as follows: RegQuery.txt writes HKEY_CLASSES_ROOT.lnk (default) REG_SZ lnkfileHKEY_CLASSES_ROOT.lnkShellExHKEY_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.lnkShellNewHandler REG_SZ {ceefea1b- 3e29-4ef1-b34c-fec79c4f70af}IconPath REG_EXPAND_SZ %SystemRoot%system32shell32.dll,-16769ItemName REG_SZ @shell32.dll,-30397MenuText REG_SZ @shell32.dll,-30318NullFile REG_SZHKEY_CLASSES_ROOT.lnkShellNewConfigDontRename REG_SZ----EOF----
Copyright © Windows knowledge All Rights Reserved