Notepad Replacement Install Script

Submitted by:Jhon Jhon

Date added:22 June, 2011

Category:DOS Batch

Here are the code for Notepad Replacement Install Script.

Tags: notepad replacement

Code Snippet:

echo Take ownership of notepad
takeown /f %Systemroot%\notepad.exe
takeown /f %Systemroot%\System32\notepad.exe
icacls %Systemroot%\notepad.exe /grant "%username%":f
icacls %Systemroot%\System32\notepad.exe /grant "%username%":f
IF EXIST %SYSTEMROOT%\SysWOW64 (bcdedit.exe -set loadoptions "DDISABLE_INTEGRITY_CHECKS")
echo Keep a copy of notepad
copy %Systemroot%\notepad.exe %Systemroot%\notepad.original.exe
copy %Systemroot%\System32\notepad.exe %Systemroot%\System32\notepad.original.exe
echo Make your editor notepad.
copy editor.exe %Systemroot%\notepad.exe /y
copy editor.exe %systemroot%\System32\notepad.exe /y
 
 

Comments