Windows 7 System Right-click method to create a new shortcut

Source: Internet
Author: User

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---- 
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.