On Windows 7 (32-bit) I want to
A. Replace notepad.exe with NoteTab Pro
B. Still be able to run the original notepad program on occasion.
What I've done so far accomplishes goal A:
Take ownership of the Microsoft installed copies of Notepad
takeown /f C:\Windows\notepad.exe /D takeown /f C:\Windows\system32\notepad.exe /DGrant Full Control to the Administrators group (of which I am a member)
echo y | Icacls C:\Windows\notepad.exe /Grant Administrators:F echo y | Icacls C:\Windows\system32\notepad.exe /Grant Administrators:FCopy the original notepad.exe to another name
copy C:\Windows\notepad.exe C:\Windows\MSnotepad.exe copy C:\Windows\system32\notepad.exe C:\Windows\system32\MSnotepad.exeCopy the NoteTab launcher EXE to Windows and Windows\System32
echo y | copy "C:\Program Files\NoteTab Pro 6\NotePad.stb" C:\Windows\system32\notepad.exe echo y | copy "C:\Program Files\NoteTab Pro 6\NotePad.stb" C:\Windows\notepad.exeCreate the INI files required by the NoteTab launcher
echo [Application]>C:\Windows\system32\notepad.ini echo ExeName="C:\Program Files\NoteTab Pro 6\NotePro.exe">>C:\Windows\system32\notepad.ini echo.>>C:\Windows\system32\notepad.ini echo [Application]>C:\Windows\notepad.ini echo ExeName="C:\Program Files\NoteTab Pro 6\NotePro.exe">>C:\Windows\notepad.ini echo.>>C:\Windows\notepad.ini
When I attempt to launch either C:\Windows\MSnotepad.exe or C:\Windows\system32\MSnotepad.exe nothing happens and no error is in the Windows system or application logs.
Any ideas?