I tried to make notepad++ the default program I used this .bat:
rem START BATCH COMMANDS
rem PLEASE MAKE SURE THAT USER ACCOUNT CONTROL (UAC) IS TURNED OFF AND PC HAS BEEN REBOOTED FIRST!
rem If you are using Vista x32 version, then edit this file first by adding “rem ” in front of every line that contains the phrase “syswow64?. Then run the script again.
@echo off
PAUSE
takeown /f C:\Windows\syswow64\notepad.exe
cacls C:\Windows\syswow64\notepad.exe /G Administrators:F
takeown /f C:\Windows\system32\notepad.exe
cacls C:\Windows\system32\notepad.exe /G Administrators:F
takeown /f C:\Windows\notepad.exe
cacls C:\Windows\notepad.exe /G Administrators:F
copy C:\Windows\syswow64\notepad.exe C:\Windows\syswow64\notepad.exe.backup
copy C:\Windows\system32\notepad.exe C:\Windows\system32\notepad.exe.backup
copy C:\Windows\notepad.exe C:\Windows\notepad.exe.backup
copy C:\Program Files (x86)\Notepad++\notepad++.exe C:\Windows\syswow64\notepad.exe
copy C:\Program Files (x86)\Notepad++\notepad++.exe C:\Windows\system32\notepad.exe
copy C:\Program Files (x86)\Notepad++\notepad++.exe C:\Windows\notepad.exe
@echo on
rem END BATCH COMMANDS
This seemed to work it copied the files fine but now if I try to edit a .txt this happens:

If I click on the notepad++ or the modified notepad.exe it opens fine. How can I get this working?
