Use Image hijacking to replace notepad with notepad2

Source: Internet
Author: User

1. Open the registry and create the following registry key: HKLM \ Software \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution options \ notepad.exe. If it cannot be modified, right-click to obtain the permission;

2. In the notepad.exe registry key, create a string value named debugger (reg_sz );

3rd, modify the data in the "debugger" string to the complete path of notepad2.exe, and end with the/Z parameter. (For example, "d: \ Program Files \ notepad2 \ notepad2.exe"/Z)

Or you canCodeSave it to The. reg file, double-click it, and you can merge (insert the registry key and string value to the registry.

 
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution options \ notepad.exe] "Debugger" = "\" D: \ Program Files (x86) \ notepad2 \ notepad2.exe \ "/z"

You may encounter a situation where you cannot write data to the Registry, as shown below:

The solution is to restart the system and press F8 to enter safe mode and then execute the reg file.

Official Website:Http://www.flos-freeware.ch/notepad2.html

Chinese version:Google (refer to: http://www.orsoon.com/soft/4900.html, including 32-bit and 64-bit)

Notepad2 features:

1. Custom syntax highlighting: HTML, XML, CSS, JavaScript, VBScript, ASP,
PHP, CSS, PERL/cgi, C/C ++, C #, Java, VB, Pascal, a compilation, SQL, Python, NSIs, INI, Reg, INF, bat, diff, and many other script files.
2 supports ANSI, Unicode, UTF-8 and Other encoding Interchange
3. You can set unlimited bookmarks (9 types of icons can be changed) for easy positioning.
4 spaces, tab color display, and can be converted to each other
5. You can operate any text block, ALT + mouse
6 pairs of brackets {} [] () can be highlighted and paired for ease of viewing (only valid for English symbols)
7. You can customize code pages and character sets, and have good support for Chinese characters.
8. search and replace using standard Regular Expressions
9 you can use the translucent mode, cool
10. Zoom in and out the page quickly without setting the font size.
11 you can specify the ESC key to minimize notepad2 to the system tray or disable notepad2.

Related Article

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.