Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 /D
    
  • Grant 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:F
    
  • Copy 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.exe
    
  • Copy 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.exe
    
  • Create 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?

share|improve this question
1  
First idea: put the thing in code blocks. Select the code and click the button that says "101010". –  Hello71 Jul 5 '10 at 17:02
    
Ok, I've seen the original post date, I guess it have been solve since then... Did you tried to launch MSNotePad from the Command Prompt or from the folder directly? –  Gabriel Mongeon May 4 '11 at 15:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.