Replace the Windows Notepad with your favorite Text-Editor
Saturday, 29. July 2006, 03:26:46
When you select to choose a text file or to view a web source etc, this system change run your favorite text-editor instead of Windows Notepad.
A lot of Text-Editor, include freeware, has many functions which Windows Notepad does not support.
・ Handling large text files well.
・ Supporting line numbers next to each line
・ Supporting advanced search and replace features.
・ Supporting text files from other platforms in a readable manner.
・ Changing the background or foreground colors.
・ Useful word, line and block editing shortcuts
・ Rectangular selection
・ Brace matching, auto indent, long line marker, zoom functions
・ Support for Unicode, UTF-8, Unix etc.
If you wish to change Windows Notepad to your favorite text-editor, please follow the instruction below.
However, you don't have to choose some word processors like "Microsoft Word".
Such software is very heavy and slow.
Using the software which has quick and small as a premise.
この記事は、テキストファイルを選択したときや、Webソースを表示した時などに起動するNotepad(メモ帳)を、あなたのお気に入りのテキストエディタに変更する操作です。
多くのテキストエディタは、Notepad(メモ帳)がサポートしていない多くの機能を有します。
たとえば、
・ファイルサイズの大きなテキストファイルでも取り扱える。
・行番号が表示できる。
・高度な検索や置換機能が搭載されている。
・他のプラットフォームで作成されたテキストファイルでも読み込むことが出来る。
・背景色や前景色の変更が可能。
・豊富な文字コードがサポートされている。
等々、枚挙に暇がありません。
Notepad(メモ帳)をお気に入りのテキストエディタに変更してみたいのであれば、以下のステップに従ってください。
ただし、この操作にはMicrosft Wordのようなワープロソフトは指定しないようにしてください。逆に重すぎて不便になります。
この機能は、「高速で軽い」ことが前提です。
(Step1)Make the backup of "Windows Notepad" for the restoration in the future.
1-a. Create "C:\OriginalNotepad" folder.
1-b. Copy, [CTRL]+[MouseDrag], "C:\Windows\Notepad.exe" to this folder.
1-c. Rename "Notepad.exe" to "OriginalNotepad.exe".
元に戻すことを考慮して、Windows Notepad のバックアップを作成する。
1-a. C:\OriginalNotepad というフォルダを作成する。
1-b. このフォルダに、C:\Windows\Notepad.exe をコピーする。
1-c. コピーした Notepad.exe を OriginalNotepad.exe と名前を変更。
(Step2)Create "C:\Notepad" folder.
You should not change this folder name.
Don't use another name.
If you change its name with another name, the batch-file of Step5 don't work.
C:\Notepad というフォルダを作成する。
実行するバッチファイルに対応させるため、必ずこの名前にします。
(Step3)Copy your favorite text-editor's execution (e.g. PSpad.exe) to "C:\Notepad" folder.
C:\Notapad に、お気に入りのテキストエディタの実行ファイル(たとえば、terapad.exe)をコピーする。
(Step4)Rename the filename of your favorite texteditor's execution to "Notepad.exe".
(e.g. [Before] PSpad.exe → [After] notepad.exe)
Don't use another name.
If you change its name with another name, the batch-file of Step5 don't work.
C:\Notepad\下のあなたのお気に入りのテキストエディタの実行ファイル名を notepad.exe に名前を変更。
(たとえば、[Before] terapad.exe → [After] notepad.exe)
(Step5)Create a batch-file.
5-a. For XP user, open your text-editor and copy the following, then save as xp.bat(this file name is arbitrary.) in your desktop.
********************************** Batch File for XP(XP用バッチファイル)
@echo off
copy /y %WinDir%\System32\dllcache\notepad.exe
%WinDir%\System32\dllcache\notepad.exe.orig
copy /y %WinDir%\ServicePackFiles\i386\notepad.exe
%WinDir%\ServicePackFiles\i386\notepad.exe.orig
copy /y %WinDir%\System32\notepad.exe %WinDir%\System32\notepad.exe.orig
copy /y %WinDir%\notepad.exe %WinDir%\notepad.exe.orig
copy /y C:\notepad\notepad.exe %WinDir%\System32\dllcache
copy /y C:\notepad\notepad.exe %WinDir%\ServicePackFiles\i386
copy /y C:\notepad\notepad.exe %WinDir%\System32
copy /y C:\notepad\notepad.exe %WinDir%
echo.
echo.
echo Write down the locations after the REG_MULTI_SZ or REG_SZ in case
the batch file does not work. If it does not work, you will need to look
in the locations from below to find other copies of notepad.exe that are
possibly being used to restore the original notepad.exe
echo.
reg query
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v
"Installation Sources"
reg query
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v
ServicePackSourcePath
reg query
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v
SourcePath
*****************************************
5-b. For 2000 user, open your text-editor and copy the following, then save as 2000.bat(this file name is arbitrary.) in your desktop.
********************************** Batch file for 2000(2000用バッチファイル)
@echo off
copy /y %WinDir%\System32\dllcache\notepad.exe
%WinDir%\System32\dllcache\notepad.exe.orig
copy /y %WinDir%\ServicePackFiles\i386\notepad.exe
%WinDir%\ServicePackFiles\i386\notepad.exe.orig
copy /y %WinDir%\System32\notepad.exe %WinDir%\System32\notepad.exe.orig
copy /y %WinDir%\notepad.exe %WinDir%\notepad.exe.orig
copy /y C:\notepad\notepad.exe %WinDir%\System32\dllcache
copy /y C:\notepad\notepad.exe %WinDir%\ServicePackFiles\i386
copy /y C:\notepad\notepad.exe %WinDir%\System32
copy /y C:\notepad\notepad.exe %WinDir%
*****************************************
バッチファイルを作成。
5-a. XPユーザは、上のXP用バッチファイルをお気に入りのエディタにコピーし適当な名前をつけてバッチファイルとして保存(例、xp.bat) をデスクトップに保存。
5-b. 2000ユーザは、上の2000用バッチファイルをお気に入りのエディタにコピーし適当な名前をつけてバッチファイルとして保存(例、2000.bat) をデスクトップに保存。
(Step6)To execute the batch-file, double-click on your batch-file.
作成したバッチファイルをダブルクリックして実行。
(Step7)After you have done the batch-file, if Windows will issue an alert stating that the new notepad.exe is not the correct one and if you would like to correct. Press cancel at this prompt and then press Yes as we want to keep the new notepad replacement.
実行後、「Windowsファイル保護」という警告メッセージが表示されます。内容は「Windowsを正しく動作させるために必要なファイルが・・・・」というものです。このメッセージボックスでは、「キャンセル」を選択。
次に表示される「ファイルを置き換えますか?」というような内容のメッセージボックスで、「はい」を選択。
(Step9)Delete "C:\Notepad" folder.
When you choose "notepad" in context-menu, toolbar, or click ".txt" file etc, your favorite text-editor will run.
You will get some benefits, viewing text file, viewing and editing web source etc.
C:\Notepad フォルダを削除。
以上で、コンテキストメニューやツールバーからnotepad(メモ帳)を選択するとお気に入りのテキストエディタが起動するようになります。
テキストファイルの閲覧やWebでのソースの表示、編集等便利になります。
【Note】
・ The batch-file overwrites Windows Notepad with your favorite Text-Editor.
・ The batch-file saves Windows Notepad as a "notepad.exe.orig".
・ However, if you wish to restore to Windows Notepad, please execute the following step.
a) Rename "C:\OriginalNotepad\OriginalNotepad.exe" to "C:\Notepad\Notepad.exe".
b) Execute the batch-file above.
c) Delete "C:\Notepad" folder.
【注意】
・ この操作で、Windows付属のNotepad(メモ帳)は、あなたが好むテキストエディタで上書きされます。
・ バッチファイルはNotepad(メモ帳)を"notepad.exe.orig"として保存しています。
・ メモ帳を起動したい場合は、Step1で保存した、"C:\OriginalNotepad\OriginalNotepad.exe"を実行してください。
・ バッチファイルはWindowsの幾つかの箇所を書き換えますので、元のNotepad(メモ帳)に復元したい場合は、、C:\OriginalNotepad\OriginalNotepad.exe のパスを C:\Notepad\ Notepad.exe とフォルダとファイル名の二つをリネームし、上記バッチファイルを実行してください。
・ 最後に、C:\Notepad フォルダを削除します。
A lot of Text-Editor, include freeware, has many functions which Windows Notepad does not support.
・ Handling large text files well.
・ Supporting line numbers next to each line
・ Supporting advanced search and replace features.
・ Supporting text files from other platforms in a readable manner.
・ Changing the background or foreground colors.
・ Useful word, line and block editing shortcuts
・ Rectangular selection
・ Brace matching, auto indent, long line marker, zoom functions
・ Support for Unicode, UTF-8, Unix etc.
If you wish to change Windows Notepad to your favorite text-editor, please follow the instruction below.
However, you don't have to choose some word processors like "Microsoft Word".
Such software is very heavy and slow.
Using the software which has quick and small as a premise.
この記事は、テキストファイルを選択したときや、Webソースを表示した時などに起動するNotepad(メモ帳)を、あなたのお気に入りのテキストエディタに変更する操作です。
多くのテキストエディタは、Notepad(メモ帳)がサポートしていない多くの機能を有します。
たとえば、
・ファイルサイズの大きなテキストファイルでも取り扱える。
・行番号が表示できる。
・高度な検索や置換機能が搭載されている。
・他のプラットフォームで作成されたテキストファイルでも読み込むことが出来る。
・背景色や前景色の変更が可能。
・豊富な文字コードがサポートされている。
等々、枚挙に暇がありません。
Notepad(メモ帳)をお気に入りのテキストエディタに変更してみたいのであれば、以下のステップに従ってください。
ただし、この操作にはMicrosft Wordのようなワープロソフトは指定しないようにしてください。逆に重すぎて不便になります。
この機能は、「高速で軽い」ことが前提です。
(Step1)Make the backup of "Windows Notepad" for the restoration in the future.
1-a. Create "C:\OriginalNotepad" folder.
1-b. Copy, [CTRL]+[MouseDrag], "C:\Windows\Notepad.exe" to this folder.
1-c. Rename "Notepad.exe" to "OriginalNotepad.exe".
元に戻すことを考慮して、Windows Notepad のバックアップを作成する。
1-a. C:\OriginalNotepad というフォルダを作成する。
1-b. このフォルダに、C:\Windows\Notepad.exe をコピーする。
1-c. コピーした Notepad.exe を OriginalNotepad.exe と名前を変更。
(Step2)Create "C:\Notepad" folder.
You should not change this folder name.
Don't use another name.
If you change its name with another name, the batch-file of Step5 don't work.
C:\Notepad というフォルダを作成する。
実行するバッチファイルに対応させるため、必ずこの名前にします。
(Step3)Copy your favorite text-editor's execution (e.g. PSpad.exe) to "C:\Notepad" folder.
C:\Notapad に、お気に入りのテキストエディタの実行ファイル(たとえば、terapad.exe)をコピーする。
(Step4)Rename the filename of your favorite texteditor's execution to "Notepad.exe".
(e.g. [Before] PSpad.exe → [After] notepad.exe)
Don't use another name.
If you change its name with another name, the batch-file of Step5 don't work.
C:\Notepad\下のあなたのお気に入りのテキストエディタの実行ファイル名を notepad.exe に名前を変更。
(たとえば、[Before] terapad.exe → [After] notepad.exe)
(Step5)Create a batch-file.
5-a. For XP user, open your text-editor and copy the following, then save as xp.bat(this file name is arbitrary.) in your desktop.
********************************** Batch File for XP(XP用バッチファイル)
@echo off
copy /y %WinDir%\System32\dllcache\notepad.exe
%WinDir%\System32\dllcache\notepad.exe.orig
copy /y %WinDir%\ServicePackFiles\i386\notepad.exe
%WinDir%\ServicePackFiles\i386\notepad.exe.orig
copy /y %WinDir%\System32\notepad.exe %WinDir%\System32\notepad.exe.orig
copy /y %WinDir%\notepad.exe %WinDir%\notepad.exe.orig
copy /y C:\notepad\notepad.exe %WinDir%\System32\dllcache
copy /y C:\notepad\notepad.exe %WinDir%\ServicePackFiles\i386
copy /y C:\notepad\notepad.exe %WinDir%\System32
copy /y C:\notepad\notepad.exe %WinDir%
echo.
echo.
echo Write down the locations after the REG_MULTI_SZ or REG_SZ in case
the batch file does not work. If it does not work, you will need to look
in the locations from below to find other copies of notepad.exe that are
possibly being used to restore the original notepad.exe
echo.
reg query
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v
"Installation Sources"
reg query
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v
ServicePackSourcePath
reg query
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v
SourcePath
*****************************************
5-b. For 2000 user, open your text-editor and copy the following, then save as 2000.bat(this file name is arbitrary.) in your desktop.
********************************** Batch file for 2000(2000用バッチファイル)
@echo off
copy /y %WinDir%\System32\dllcache\notepad.exe
%WinDir%\System32\dllcache\notepad.exe.orig
copy /y %WinDir%\ServicePackFiles\i386\notepad.exe
%WinDir%\ServicePackFiles\i386\notepad.exe.orig
copy /y %WinDir%\System32\notepad.exe %WinDir%\System32\notepad.exe.orig
copy /y %WinDir%\notepad.exe %WinDir%\notepad.exe.orig
copy /y C:\notepad\notepad.exe %WinDir%\System32\dllcache
copy /y C:\notepad\notepad.exe %WinDir%\ServicePackFiles\i386
copy /y C:\notepad\notepad.exe %WinDir%\System32
copy /y C:\notepad\notepad.exe %WinDir%
*****************************************
バッチファイルを作成。
5-a. XPユーザは、上のXP用バッチファイルをお気に入りのエディタにコピーし適当な名前をつけてバッチファイルとして保存(例、xp.bat) をデスクトップに保存。
5-b. 2000ユーザは、上の2000用バッチファイルをお気に入りのエディタにコピーし適当な名前をつけてバッチファイルとして保存(例、2000.bat) をデスクトップに保存。
(Step6)To execute the batch-file, double-click on your batch-file.
作成したバッチファイルをダブルクリックして実行。
(Step7)After you have done the batch-file, if Windows will issue an alert stating that the new notepad.exe is not the correct one and if you would like to correct. Press cancel at this prompt and then press Yes as we want to keep the new notepad replacement.
実行後、「Windowsファイル保護」という警告メッセージが表示されます。内容は「Windowsを正しく動作させるために必要なファイルが・・・・」というものです。このメッセージボックスでは、「キャンセル」を選択。
次に表示される「ファイルを置き換えますか?」というような内容のメッセージボックスで、「はい」を選択。
(Step9)Delete "C:\Notepad" folder.
When you choose "notepad" in context-menu, toolbar, or click ".txt" file etc, your favorite text-editor will run.
You will get some benefits, viewing text file, viewing and editing web source etc.
C:\Notepad フォルダを削除。
以上で、コンテキストメニューやツールバーからnotepad(メモ帳)を選択するとお気に入りのテキストエディタが起動するようになります。
テキストファイルの閲覧やWebでのソースの表示、編集等便利になります。
【Note】
・ The batch-file overwrites Windows Notepad with your favorite Text-Editor.
・ The batch-file saves Windows Notepad as a "notepad.exe.orig".
・ However, if you wish to restore to Windows Notepad, please execute the following step.
a) Rename "C:\OriginalNotepad\OriginalNotepad.exe" to "C:\Notepad\Notepad.exe".
b) Execute the batch-file above.
c) Delete "C:\Notepad" folder.
【注意】
・ この操作で、Windows付属のNotepad(メモ帳)は、あなたが好むテキストエディタで上書きされます。
・ バッチファイルはNotepad(メモ帳)を"notepad.exe.orig"として保存しています。
・ メモ帳を起動したい場合は、Step1で保存した、"C:\OriginalNotepad\OriginalNotepad.exe"を実行してください。
・ バッチファイルはWindowsの幾つかの箇所を書き換えますので、元のNotepad(メモ帳)に復元したい場合は、、C:\OriginalNotepad\OriginalNotepad.exe のパスを C:\Notepad\ Notepad.exe とフォルダとファイル名の二つをリネームし、上記バッチファイルを実行してください。
・ 最後に、C:\Notepad フォルダを削除します。













