Posted By

LeeRJohnson on 12/19/10


default texteditor

Versions (?)

Notepad Replacement Install Script

 / Published in: DOS Batch


  1. echo Take ownership of notepad
  2. takeown /f %Systemroot%\notepad.exe
  3. takeown /f %Systemroot%\System32\notepad.exe
  4. icacls %Systemroot%\notepad.exe /grant "%username%":f
  5. icacls %Systemroot%\System32\notepad.exe /grant "%username%":f
  6. IF EXIST %SYSTEMROOT%\SysWOW64 (bcdedit.exe -set loadoptions "DDISABLE_INTEGRITY_CHECKS")
  7. echo Keep a copy of notepad
  8. copy %Systemroot%\notepad.exe %Systemroot%\notepad.original.exe
  9. copy %Systemroot%\System32\notepad.exe %Systemroot%\System32\notepad.original.exe
  10. echo Make your editor notepad.
  11. copy editor.exe %Systemroot%\notepad.exe /y
  12. copy editor.exe %systemroot%\System32\notepad.exe /y

Report this snippet  

You need to login to post a comment.