Recommended Posts

I have my own version of Notepad that I like, called NotepadEx (http://notepadex.cjb.net/).

I'd like to replace the one that comes with Windows 7, but windows doesn't allow me to do that.

Is there a way to stop Windows from preventing this action file overwrite lock, just for this one action?

Link to comment
https://www.neowin.net/forum/topic/817986-replace-notepadexe-in-win7/
Share on other sites

yes its called take ownership enabler. I dont have the link to it but heres the file.

All you do is add it to the registry then simply right click notepad.exe and select take ownership, this should let you replace it.

Taking_Ownership.zip

I believe Notepad is under Windows File Protection. Why do you have to replace it though? I don't get it. Can't you just set NotepadEx as the default editor for the file types you want?

As for UAC, you shouldn't get an elevation prompt unless it's demanding to run as administrator for some reason. Are you maybe thinking of the Explorer warning that it's from an untrusted source?

Thanks but I don't see the "take ownership" menu item.

Also, every time I try to run NotepadEx, Windows pops up a stupid UAC alert. While UAC alerts are important, how do I stop it for this application?

if you get an UAC popup everytime you run a program it means that program is badly written (writing log entries to a forbidden area for example). Find another program like notepad++ ;)

Now, to override a WFP (windows file protection) file you need to have trusted installer rights...

I'd recommend simply setting a few values in the registry to take care of this:

- Open the Registry Editor

- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

- Create a new key called "notepad.exe" or "npex.exe" (whatever you want to call it, really)

- Set the (Default) string value to the full path of the executable - e.g. C:\Program Files (x86)\App\Program.exe

- Create a new string value and name it Path

- Modify the Path string value to point to the directory containing the executable - e.g. C:\Program Files (x86)\App\

Close the registry, open the Start menu or hit WinKey+R and type in the name of the key you created earlier, such as npex.exe. It should then allow you to launch the application (this will also work for substituting notepad.exe without overwriting it).

I'd recommend simply setting a few values in the registry to take care of this:

- Open the Registry Editor

- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

- Create a new key called "notepad.exe" or "npex.exe" (whatever you want to call it, really)

- Set the (Default) string value to the full path of the executable - e.g. C:\Program Files (x86)\App\Program.exe

- Create a new string value and name it Path

- Modify the Path string value to point to the directory containing the executable - e.g. C:\Program Files (x86)\App\

Close the registry, open the Start menu or hit WinKey+R and type in the name of the key you created earlier, such as npex.exe. It should then allow you to launch the application (this will also work for substituting notepad.exe without overwriting it).

Useful tip. Thanks.

try this:

http://code.kliu.org/misc/notepad2/

Replacing Windows Notepad with Notepad2

Replacing Windows Notepad with Notepad2 can be a little tricky since notepad.exe is a protected system file, which makes a direct replacement a bit difficult (though not impossible).

There is an easier way to replace Windows Notepad by using the "Image File Execution Options" registry key to trick Windows into running notepad2.exe whenever notepad.exe is run. This same trick is used by the "Replace Task Manager" function in Microsoft's Process Explorer. The benefit to using this method to replace Notepad is that you will not run afoul of Windows File Protection (since you are not actually replacing the executable itself), and you can undo it at any time by simply deleting the registry key. The downside to this method is that it does not work properly with the official Notepad2 build; there are a few minor changes that need to be made to Notepad2 in order for this to work (see my img_exec_replace patch).

In order to use this method of Notepad replacement, you will need to follow these steps:

1. Obtain a build of Notepad2 that supports this form of Notepad replacement.

2. Create the following registry key: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe.

3. Inside the key, create a new string (REG_SZ) value, named "Debugger".

4. Set the data of this new "Debugger" value to the full path to the Notepad2 executable, followed by the /z switch. For example, "C:\Windows\Notepad2.exe" /z

I believe Notepad is under Windows File Protection. Why do you have to replace it though? I don't get it. Can't you just set NotepadEx as the default editor for the file types you want?

As for UAC, you shouldn't get an elevation prompt unless it's demanding to run as administrator for some reason. Are you maybe thinking of the Explorer warning that it's from an untrusted source?

this

I believe Notepad is under Windows File Protection. Why do you have to replace it though? I don't get it. Can't you just set NotepadEx as the default editor for the file types you want?

As for UAC, you shouldn't get an elevation prompt unless it's demanding to run as administrator for some reason. Are you maybe thinking of the Explorer warning that it's from an untrusted source?

Seriously. It's win7 we're talking about just.. pin the thing to the taskbar? change its icon? I dunno why all the fuss. notepad.exe is a system file and I believe windows will try to repair it /replace it with the original. I guess you could change it so that when you type "notepad" into win+r or the search in the start menu the new one starts. but again, some taskbar 'pinnage' would do the job too

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • BrowserOS 0.46.0 by Razvan Serea BrowserOS is a free, open-source Chromium-based browser that runs AI agents natively, offering a smarter, more productive browsing experience. It supports Chrome extensions and integrates AI agents to automate tasks, fill forms, and streamline workflows. Your data stays on your computer: you can use your own API keys or run local models via Ollama, making it a privacy-first alternative to tools like Perplexity, Comet, or Dia. With built-in productivity tools and app integrations, BrowserOS boosts efficiency while keeping control firmly in your hands. Being Chromium-based, BrowserOS lets you effortlessly import your bookmarks, passwords, and Chrome extensions in just a few clicks. BrowserOS works with OpenAI GPT models, Anthropic Claude, Google Gemini, and local AI models via Ollama or LMStudio. You can use your own API keys and effortlessly switch between providers. BrowserOS Agent Your AI productivity assistant that organizes and manages your browsing effortlessly Quickly list, group, or close tabs Save and resume browsing sessions Search your history and organize bookmarks Switch instantly to the tab you need BrowserOS Navigator – Automate web tasks with ease Navigate websites and search automatically Interact with pages without manual effort Handle repetitive tasks in seconds What makes BrowserOS special Feels like home - same familiar interface as Google Chrome, works with all your extensions AI agents that run on YOUR browser, not in the cloud Privacy first - bring your own keys or use local models with Ollama. Your browsing history stays on your computer Open source and community driven - see exactly what's happening under the hood MCP store to one-click install popular MCPs and use them directly in the browser bar (coming soon) Built-in AI ad blocker that works across more scenarios! BrowserOS 0.46.0 changelog: Run Claude Code & Codex right in your browser — We've extended the agent harness to bring full coding agents into BrowserOS. Claude Code and Codex now come bundled and plug straight into the assistant, so you can drive your browser with the agent — and the subscription — you already use. A brand new experience — A redesigned new tab, a calmer composer, and a rebuilt command center for switching between agents. The whole assistant is cleaner, faster to reach, and easier to live in. New MCP tools — We rebuilt the browser tool surface from the ground up — a tighter, more reliable set of tools for agents to drive the browser. Plus one-click install of BrowserOS as an MCP server into the agents you already run, with automatic URL sync. Chromium 148 — Updated to the latest Chromium base with all recent upstream fixes and security patches. Streamlined — We've pulled back a few features that weren't getting much use — Skills, Soul, and Memory — so we can focus and ship better versions of them soon. Download: BrowserOS 0.46.0 | 181.0 MB (Open Source) Download: BrowserOS for macOS | 485.0 MB Links: BrowserOS Homepage | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Microsoft finally admits its default Windows 11 25H2, 24H2 action broke key legacy component by Sayan Sen Microsoft last week released Windows 11 KB5094126 and KB5093998 as the latest Patch Tuesday updates. Following that the company also published the accompanying dynamic updates under KB5094149, KB5095971, and KB5094156. So far the company has acknowledged two known issues that have popped up after the release which include bugged-out Office apps as well as the Recycle Bin; though there could be more at play too. Speaking of bugs and issues, Microsoft seems to have finally acknowledged a problem that probably has been around for close to a year. That's because back in July of 2025 the company made a default change to the latest Windows 11 versions, wherein it switched to JScript9Legacy on Windows 11 24H2 and later releases. Hence following the release of version 25H2 in October 2025, JScript9Legacy also remained default-enabled. As a result there has been a compatibility issue ever since then. For those wondering, by switching to JScript9Legacy Microsoft intended to improve the security of modern Windows PCs by reducing vulnerabilities tied to legacy scripting like cross-site scripting (XSS), among others. XSS exploits can allow cyber-attackers to attach malicious code onto legitimate websites and use them to execute the code when a potential victim loads such a website. Hence the new JScript9Legacy engine enforced stricter execution policies and improved object handling, which should help mitigate such attacks. Microsoft today has published a new support article detailing the problem. Neowin spotted it while browsing. The company says that JScript global definitions and execution context may fail to persist across scripts, potentially breaking older dependent apps and web-based components that relied on this legacy behavior. In the article Microsoft has confirmed that the issue stems from its move away from the older jscript9.dll engine in favor of jscript9legacy.dll. As mentioned above, while the newer engine was designed to address vulnerabilities and strengthen security it also changes how JScript handles execution context. As a result functions and definitions loaded by one script could no longer remain available to subsequent scripts once execution ended. The company notes that some applications worked correctly on earlier Windows versions because the older JScript engine automatically retained global definitions and execution state between scripts. Under the newer model though that behavior is disabled by default causing certain legacy workloads and polyfill-dependent scripts to fail. Microsoft says it addressed the problem via the KB5077241 update though the fix had not been enabled automatically in the following updates. As such admins must explicitly turn on persistent JScript execution context using a Registry setting that the tech giant shared today. The configuration can be applied to individual processes or system-wide through the FEATURE_ENABLE_PERSISTENCE registry key. The steps have been outlined below: Run the following command to create the feature control registry key: reg add "HKLM\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_ENABLE_PERSISTENCE" Under this key, create a new DWORD (32-bit) value. Configure the value as follows: To enable persistence for specific processes only: Set the value to 1 for each target process name. To enable persistence for all processes: Add * as the key name and set its value to 1. You can find the official support article here on Microsoft's website.
    • The possibility that milk gathers back into a glass implies that gravity can be 'reversed'.
  • Recent Achievements

    • Week One Done
      Jordan Smith earned a badge
      Week One Done
    • Reacting Well
      BizSAR earned a badge
      Reacting Well
    • First Post
      AndreaB earned a badge
      First Post
    • Week One Done
      Huge Trailer earned a badge
      Week One Done
    • Week One Done
      Classifyskilleducation earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      590
    2. 2
      +Edouard
      186
    3. 3
      PsYcHoKiLLa
      76
    4. 4
      Michael Scrip
      73
    5. 5
      Steven P.
      66
  • Tell a friend

    Love Neowin? Tell a friend!