我之前写过一些关于Windows记事本(Notepad)的最佳替代品,但我没有提到(mention anything)完全替换记事本(Notepad)的任何内容。就个人而言,我发现记事本(Notepad)非常有用,因为您可以将大量格式化的文本粘贴到其中并复制干净的非格式化文本。
但是,如果您从不这样做,并且只在Windows强制您使用(Windows)记事本(Notepad)(即打开一个文本文档(text document))时使用,那么用其他东西替换记事本可能会让您更有效率。(Notepad)不幸的是,真正替换记事本(Notepad)的过程相当漫长而乏味。对于大多数人来说,我认为好处不会超过遵循该程序的成本。
半替换记事本(Notepad)的更简单方法是下载记事本替代品(Notepad alternative),然后将新程序设置为某些文件类型的默认程序。(default program)基本上(Basically),您将转到“设置文件关联”对话框(Set File Associations dialog),只需更改当前默认为记事本(Notepad)的所有内容。您还可以更改任何其他扩展以使用新的记事本替代(Notepad alternative)方式打开。
这显然更容易,也更安全(lot safer)。话虽如此,我仍将引导您完成使用不同程序实际替换记事本(Notepad)的步骤,以防您确实想要这样做。
在我们进入该程序之前,您必须检查替代程序以确保它能够自行运行。首先,您必须下载该程序的非安装程序版本。例如,如果您决定使用Notepad2,首先确保下载 32 位或 64 位程序文件,而不是安装程序。
解压缩文件,您应该有一个包含一些文件的文件夹,其中一个是应用程序(Application)文件 ( EXE )。继续将该文件复制到您的桌面,看看您是否可以运行该程序。
如果程序从桌面运行没有任何错误,您可以使用它来替换记事本(Notepad)。像Notepad++这样的程序有一堆文件和文件夹依赖(file and folder dependencies)项,当你将EXE 文件(EXE file)复制到桌面时,它会引发一堆错误。所以我们不能用它来代替Notepad。请记住(Remember),当您选择替代方案时,不要下载安装程序或安装程序。(setup or installer program)
在 Windows 中替换记事本
因此,您首先要弄清楚的是您使用的是 32 位还是 64 位Windows。您可以通过转到资源管理器(Explorer)、此 PC,然后单击安装Windows的(Windows)C 驱动器(C drive)来执行此操作。如果您看到两个文件夹Program Files和Program Files (x86),则表示您拥有 64 位版本的Windows。
你也可以直接点击开始(Start),输入系统(System),按回车(Enter),然后查看系统类型(System Type)下列出的内容。
为了替换记事本(Notepad),我们必须替换存储在Windows中几个不同位置的(Windows)记事本(Notepad)可执行文件。如果您有 32 位Windows,则只有两个位置。对于 64 位Windows,它是三个位置。
C:\Windows
C:\Windows\System32\
C:\Windows\SysWOW64 - Only 64-bit Windows
现在我们必须遍历上述所有位置并删除notepad.exe 文件(notepad.exe file)。每个文件的过程都是相同的,所以我只给你看一次,然后你必须自己为其他两个文件做。
导航到C:\Windows并向下滚动直到看到Notepad。现在右键单击记事本(Notepad)并选择Properties。
现在单击“安全(Security)”选项卡,然后单击底部的“高级”按钮。(Advanced)
在顶部,单击Owner旁边的Change按钮。该文件的所有者应该是TrustedInstaller。如果您运行的是Windows 7,请单击所有者(Owner)选项卡,然后单击编辑(Edit)按钮。
在出现的框中,继续输入单词administrators,然后单击Check Names。它应该使用前面的计算机名称正确格式化。(computer name)
单击确定(OK),您应该会看到所有者现在说Administrators而不是TrustedInstaller。在Windows 7中,您无需输入任何内容。您应该会在底部看到管理员,因此只需选择它并单击确定。(Administrators)
现在您必须通过单击确定(OK)退出所有安全屏幕。确保您没有单击“(t click) 取消(Cancel)” 。您必须单击确定两次,一次退出高级安全设置(Advanced Security Settings)屏幕,一次退出notepad.exe 的属性(Properties)屏幕。您应该回到您的资源管理器窗口(Explorer window)。
继续并再次右键单击 notepad.exe 并选择Properties。再次单击“安全(Security)”选项卡,但这次单击(time click)“编辑(Edit)”按钮。
单击组和用户列表中的管理员(Administrators),然后选中底部权限框中允许(Allow)完全控制(Full Control)下的框。
现在单击“确定(OK)”关闭“权限(Permissions)”屏幕。您可能会收到一个弹出窗口,提示您正在更改权限,这可能会降低计算机的安全性。只需单击(Just click) 是(Yes)继续。然后再次单击确定关闭记事本属性(Properties)对话框。
再次,您将返回资源管理器窗口(Explorer window)。现在您应该可以右键单击notepad.exe 文件(notepad.exe file)并将其删除。现在将您的替换记事本(replacement notepad) 应用程序文件复制(application file and copy)到 C:Windows 文件夹。
请注意,如果您有 64 位版本的Windows,您应该复制 64 位版本的程序。这不是必需的,如果程序没有(program doesn)64 位版本,您可以使用 32 位版本,它仍然可以工作。
您还将看到一个对话框,显示Folder Access Denied,但只需单击Continue即可复制文件。现在继续将文件重命名为notepad。请注意,您不必键入 notepad.exe,因为默认情况下Windows会隐藏应用程序扩展。
当您将文件重命名为记事本时,您还会看到该图标被替换为常规记事本图标(Notepad icon)。别担心,该程序仍然是您的记事本替代品(Notepad alternative),但Windows会更改图标,因为这是一个系统文件夹,而记事本(system folder and Notepad)是一个系统程序(system program)。
现在,如果您有 32 位版本的Windows或两次(C:\Windows\System32和C:\Windows\SysWOW64)在您有 64 位版本的Windows中,您必须在(Windows)C:\Windows\System32 :WindowsSystem32 中再执行一次。
第一次需要一点时间,但是第二次和第三次过得很快。替换所有原始文件后,您可以单击Start,输入记事本(notepad),然后按Enter。您现在应该看到您的替换程序(replacement program),而不是正常的Windows 记事本加载(Windows Notepad loading)。
您可能会收到一条警告,提示您第一次运行此程序时无法验证该程序的发布者。这是因为Windows检查EXE 文件(EXE file)的签名并知道它不是原始文件。在这种情况下,只需取消选中打开此文件前始终询问(Always ask before opening this file)框,然后单击运行(Run)。
现在,当您再次运行它时,它应该可以正常打开而没有任何对话框。
就是这样!总体而言,它运行良好,您可以在执行这些步骤时从几种不同的记事本替代方案中进行选择。(Notepad)如果您有任何问题,请随时发表评论。享受!
How to Replace Notepad in Windows with Alternatives
I’ve previously written about some of the best alternatives to Notepad for Windows, but I didn’t mention anything about replacing Notepad altogether. Personally, I find Notepad to be really useful because you can paste heavily formatted text into it and copy out clean non-formatted text.
However, if you never do that and only use Notepad when Windows forces you to, i.e. opening a text document, maybe replacing Notepad with something else will make you more productive. Unfortunately, the procedure to truly replace Notepad is quite long and tedious. I don’t think the benefits outweigh the cost of following the procedure for most people.
An easier way to semi-replace Notepad is to download a Notepad alternative and then just set the new program as the default program for certain file types. Basically, you would go to the Set File Associations dialog and just change all the ones currently defaulted to Notepad. You could also change any other extension to open with your new Notepad alternative.
This is obviously a lot easier and a lot safer. That being said, I’m still going to walk you through the steps for actually replacing Notepad with a different program in case that’s really what you want to do.
Before we get into the procedure, you have to check the alternative program to make sure it works all by itself. Firstly, you have to download the non-installer version of the program. For example, if you decide to use Notepad2, first make sure to download the 32-bit or 64-bit program files, not the setup.
Unzip the files and you should have a folder with some files, one being the Application file (EXE). Go ahead and copy that one file to your desktop and see if you can run the program.
If the program runs without any errors from the desktop, you can use it to replace Notepad. A program like Notepad++ has a bunch of file and folder dependencies and when you copy the EXE file to the desktop, it raises a bunch of errors. So we won’t be able to use that to replace Notepad. Remember, don’t download the setup or installer program when you choose an alternative.
Replace Notepad in Windows
So the first thing you have to figure out is whether you have 32-bit or 64-bit Windows. You can do this by going to Explorer, This PC and then clicking on the C drive where Windows is installed. If you see two folders, Program Files and Program Files (x86), that means you have a 64-bit version of Windows.
You can also just click on Start, type in System, press Enter and then check to see what is listed under System Type.
In order to replace Notepad, we have to replace the Notepad executable file that is stored in a couple of different locations in Windows. If you have 32-bit Windows, it’s just two locations. For 64-bit Windows, it’s three locations.
C:\Windows
C:\Windows\System32\
C:\Windows\SysWOW64 - Only 64-bit Windows
Now we have to go through all of the above locations and delete the notepad.exe file. The procedure is the same for each file, so I’ll only show you once and then you’ll have to do it yourself for the other two.
Navigate to C:\Windows and scroll down till you see Notepad. Now right-click on Notepad and choose Properties.
Now click on the Security tab and then click on the Advanced button at the bottom.
At the top, click on the Change button next to the Owner. The owner for this file should be TrustedInstaller. If you are running Windows 7, click on the Owner tab and then click the Edit button.
In the box that appears, go ahead and type in the word administrators and then click on Check Names. It should format it properly with the computer name in front.
Click OK and you should see that the owner now says Administrators instead of TrustedInstaller. In Windows 7, you don’t have to type in anything. You should see Administrators listed at the bottom, so just select that and click OK.
Now you have to exit all of the security screens by clicking OK. Make sure you don’t click Cancel. You should have to click OK twice, once to exit the Advanced Security Settings screen and once to exit Properties screen for notepad.exe. You should be back to your Explorer window.
Go ahead and right-click on notepad.exe again and choose Properties. Click on the Security tab again, but this time click on the Edit button.
Click on Administrators in the list of groups and users and then check the box under Allow for Full Control in the permissions box at the bottom.
Now click OK to close the Permissions screen. You might get a popup saying you are changing permissions and this could reduce the security of your computer. Just click Yes to continue. Then click OK again to close the Notepad Properties dialog.
Again, you’ll be back to the Explorer window. Now you should be able to right-click on the notepad.exe file and delete it. Now take your replacement notepad application file and copy it to the C:\Windows folder.
Note that if you have a 64-bit version of Windows, you should copy the 64-bit version of the program. This is not a requirement and if the program doesn’t have a 64-bit version, you can use the 32-bit version and it’ll still work.
You’ll also get a dialog saying Folder Access Denied, but just click Continue and the file will be copied. Now go ahead and rename the file to notepad. Note that you do not have to type in notepad.exe because Windows hides application extensions by default.
When you rename the file to notepad, you’ll also see that the icon gets replaced with the regular Notepad icon. Don’t worry, the program is still your Notepad alternative, but Windows changes the icon because this is a system folder and Notepad is a system program.
Now you have to go do this one more time in C:\Windows\System32 if you have a 32-bit version of Windows or two more times (C:\Windows\System32 and C:\Windows\SysWOW64) in you have a 64-bit version of Windows.
The first time takes a bit of time, but the second and third time go by really fast. Once all the original files have been replaced, you can click on Start, type in notepad and then press Enter. Instead of the normal Windows Notepad loading, you should now see your replacement program.
You might get a warning saying that the publisher of this program could not be verified the first time you run it. This is because Windows checks the signature of the EXE file and knows it is not the original file. In this case, just uncheck the Always ask before opening this file box and click Run.
Now when you run it again, it should just open fine without any dialog.
That’s about it! Overall, it works well and you can choose from several different Notepad alternatives when performing these steps. If you have any questions, feel free to comment. Enjoy!