Tiêu đề: Thêm tùy chọn vào menu ngữ cảnh khi click chuột phải vào My Computer | |
| | | | | | Có nhiều cách để gọi nhanh một tập lệnh hay một chương trình trong windows như Run Command hoặc tạo một shortcut trên desktop. Tuy nhiên, nếu bạn là người thích sự khác biệt, thích sự đơn giản và tốc độ? Bạn hoàn toàn có thể gọi cửa sổ Control Panel, Registry Editor, Driver Cleanup hay Reboot hoặc Shutdown máy…chỉ với một phát click và rê chuột. Không cần phần mềm, tất cả chỉ là những dòng lệnh để đăng ký với registry và bạn sẽ có kết quả giống như thế này: Để làm điều đó, bạn mở notepad, soạn thảo nội dung như sau:
Windows Registry Editor Version 5.00 ;Adds Control Panel to right click of MY Computer [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Control Panel\command] @="rundll32.exe shell32.dll,Control_RunDLL" ;Adds Add/Remove to right click of MY Computer [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove\command] @="control appwiz.cpl" ;Adds Drive Cleanup to right click of MY Computer [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Drive Cleanup\command] @="cleanmgr" ;Adds Services to right click of MY Computer [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services] @=hex(2):53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00 "SuppressionPolicy"=dword:4000003c [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command] @=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\ 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,\ 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\ 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\ 32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73,\ 00,63,00,20,00,2f,00,73,00,00,00 ;Adds System Restore to right click of MY Computer [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\System Restore\command] @=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\ 00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,65,00,73,00,74,00,6f,00,72,00,\ 65,00,5c,00,72,00,73,00,74,00,72,00,75,00,69,00,2e,00,65,00,78,00,65,00,00,\ 00 ;Adds LogOff to right click of MY Computer. [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[LogOff]\command] @="shutdown -l -f -t 5" ;Adds Reboot to right click of MY Computer. [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Reboot]\command] @="shutdown -r -f -t 5" ;Adds Shutdown to right click of MY Computer. [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Shutdown]\command] @="shutdown -s -f -t 5" ;Adds Registry to right click of MY Computer. [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}] "LocalizedString"=hex(2):25,55,53,45,52,4e,41,4d,45,25,27,73,20,43,6f,6d,70,75,74,65,72,00 [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\regedit] @="Registry Editor" [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\regedit\command] @="C:\\Windows\\Regedit.exe" ;Adds Device to right click of MY Computer. [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices] @=hex(2):44,00,65,00,76,00,69,00,63,00,65,00,20,00,4d,00,61,00,6e,00,61,00,67,\ 00,65,00,72,00,00,00 "SuppressionPolicy"=dword:4000003c [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices\command] @=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\ 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,\ 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\ 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\ 32,00,5c,00,64,00,65,00,76,00,6d,00,67,00,6d,00,74,00,2e,00,6d,00,73,00,63,\ 00,20,00,2f,00,73,00,00,00 Save lại với một tên bất kỳ có đuôi mở rộng là .reg , chẳng hạn như rightclick.reg.
Thực hiện sao lưu registry nhằm đề phòng sự thay đổi làm ảnh hưởng đến hệ thống của bạn. Để tạo bản backup cho registry, bạn click chuột vào nút Start chọn Run ( hoặc nhấn tổ hợp phím Windows+R) , gõ vào hộp thoại lệnh regedit , trong cửa sổ Registry Editor, vào menu File, chọn Export và save lại với tên bất kỳ.
Tiếp tục click đúp vào file rightclick.reg vừa tạo, chọn Yes
| | | | |
|
|