[Thủ Thuật] Cách khắc phục desktop xuất hiện Shortcut với file mở rộng *.lnk

lyphuclong

New member
các bạn có bao giờ gặp trường hợp tất cả các shortcut (có định đuôi file mở rộng *.lnk) chỉ mở được bằng một chuơng trình nào đó như firefox ,notepad ... chưa?

Snapshot_2012-04-17_164655.png


cái này đơn giản, nhưng mình sẽ hương dẫn cho nhưng bạn chưa biết

Cách 1: mở Notepad hoặc vào Start > Run > gõ từ khóa notepad

Sau khi mở chương trình notepad các bạn sau chép mã dưới đây

[Version]Signature="$Windows NT$"
Provider=LangkhachBkavForum


[DefaultInstall]
DelReg=LangkhachDel
AddReg=LangkhachAdd


[LangkhachDel]
HKCU, Software\Classes\.exe
HKCU, Software\Classes\secfile
HKCR, secfile
HKCR, .exe\shell\open\command
HKCR, HCP


[LangkhachAdd]
HKCR, exefile\shell\open\command,,,"""%1"" %*"
HKCR, .exe,,,"exefile"
HKCR, .exe,"Content Type",,"application/x-msdownload"
HKLM, Software\CLASSES\batfile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\comfile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\exefile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\piffile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\regfile\shell\open\command,,,"regedit.exe ""%1"""
HKLM, Software\CLASSES\scrfile\shell\open\command,,,"""%1"" %*"
HKCU, Software\Microsoft\Windows\CurrentVersion\Policies\System,DisableRegistryTools,0x10001,0
HKCU, Software\Policies\Microsoft\Windows\System,DisableCMD,0x10001,0
HKLM, Software\Microsoft\Windows NT\CurrentVersion\SystemRestore,DisableSR,0x10001,1
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon,Shell,0,Explorer.exe
HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,HideFileExt,0x10001,0
HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Hidden,0x10001,1
HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,ShowSuperHidden,0x10001,1
HKCU, Software\Microsoft\Windows\CurrentVersion\Policies\System,DisableTaskMgr,0x10001,0
HKCU, Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoFolderOptions,0x10001,0
HKCU, Software\Policies\Microsoft\Internet Explorer\Restrictions,NoBrowserOptions,0x10001,0
HKCU, Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoRun,0x10001,0
HKLM, Software\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf,,,"@SYS:KhongKhongThay"
HKLM, Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDriveTypeAutoRun,0x10001,255
HKLM, Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoDriveAutoRun,0x10001,255
HKLM, Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\CancelAutoplay\Files,*.*,0x0
HKLM, System\CurrentControlSet\Services\ShellHWDetection,Start,0x10001,4
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\WScript.exe,Debugger,0,"ntsd -d"
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SafeSys.exe,Debugger,0,"ntsd -d"
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SysAnti.exe,Debugger,0,"ntsd -d"
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\spoolsv.exe,Debugger,0,"ntsd -d"

và save lại với tên tùy ý bạn và và với đuôi là *.INF

ví dụ: lyphuclong.inf

như hình, thui download cho lẹ :01: link mediafire (2.36kb)

sau đó bạn Click chuột phải vào và chọn Install

Cách 2: Vào Start > Run gõ lệnh Regedit để vào Registry Editor. tìm đến khóa .lnk theo đường dẫn HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\FileExts\.lnk
click chuột chọn key .lnk trên bảng phía bên tay trái sau đó nhấn phím delete để xóa key này đi.tắt regedit và khởi động lại máy là ok.

Chúc bạn thành công
 
Back
Top