Hi, I have a very simple question but one which creates a lot of bother!!
In Notepad (and even notepad++) when I open an html file and after editing try to save it, it says..'the process cannot access the file because it is being used by another process' and follows up with a 'SAVE AS' box. This happens even though the html file is not open in any browser!

Any solutions or tricks are welcome!

Dani AI

Generated

This error simply means another process has an open handle on the HTML file so Windows blocks the write. was correct about that fundamental point. Common lock sources that often get missed are the Explorer preview pane, cloud-sync clients (OneDrive/Dropbox), real‑time antivirus scanning, or a background web server/editor that opened the file.

A safe way to find the culprit is Resource Monitor: run resmon (Win+R, type resmon), open the CPU tab, use the "Associated Handles" search and enter part of the filename. The matching process will be shown and can be closed normally (or exited via Task Manager). If Resource Monitor doesn’t help, Sysinternals Process Explorer (run as admin) has a Find (Ctrl+F) that locates handles by filename; close the owning application rather than force‑closing system handles unless absolutely necessary.

Quick practical fixes that often resolve it:

  • Toggle Explorer’s preview pane (Alt+P) or close the Explorer window showing the file — this is the root of ’s “deselect” tip (and ’s confirmation).
  • Pause or quit any cloud sync client for that folder.
  • Temporarily disable real‑time AV only to test; re‑enable afterwards.
  • Save to a new name with Save As, then replace the original after closing the locking app.
  • As a last resort, restart Explorer or reboot the machine (per ).

Avoid forcing handle closures unless comfortable with the risk, and keep a backup copy before experimenting. If scans repeatedly flag the file, run a full AV check, but a virus is an uncommon cause compared with preview panes and sync tools.

Recommended Answers

All 6 Replies

This happened to me before you must save all other programs where your page is being stored, like my documents, a browser ect...

If you use Windows, you don’t need to buy or download an editor in order to write HTML. You have a perfectly functional editor built into your operating system — Notepad.With Notepad, you can write complex or simple HTML and once you have learned the language, you can edit pages as quickly as someone with an expensive HTML editor.

I think you might have a virus and I recomand if you are a windows user to try hitman pro

the process cannot access the file because it is being used by another process

This simply refers to the fact that there is another process that is in control of the file. If you are just using notepad and a browser to display the results, this should not happen. Have you tried to restart your computer?

Hi, I have a very simple question but one which creates a lot of bother!!
In Notepad (and even notepad++) when I open an html file and after editing try to save it, it says..'the process cannot access the file because it is being used by another process' and follows up with a 'SAVE AS' box. This happens even though the html file is not open in any browser! Any solutions or tricks are welcome!

you are invoking the page you are editing from the file explorer
deselect it before trying to save your changes.

Thank you Troy III that was driving me crazy- the correct solution is "you are invoking the page you are editing from the file explorer
deselect it before trying to save your changes."

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.