Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 [Application]>C:\Windows\notepad.ini
    echo ExeName="C:\Program Files\NoteTab Pro 6\NotePro.exe">>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
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

You must log in to answer this question.

Browse other questions tagged .