Notepad Replacement Install Script
URL: http://forums.mydigitallife.info/threads/35-Notepad2-as-Vista-Notepad-Replacement-Install-Script
Copy this code and paste it in your HTML
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"
) 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
Report this snippet