Notepads icon indicating copy to clipboard operation
Notepads copied to clipboard

[Bug] Zone information is written on each file save

Open Tech-How opened this issue 5 months ago • 0 comments

Describe the bug When a document is edited and saved in Notepads, the app writes Zone information to an alternate data stream in the file, something typically done when a file is downloaded from the internet or transferred from a network drive to help prevent accidental execution for security purposes.

To Reproduce

  1. Open a text file in Notepads, make changes, and the save the file.
  2. Open the properties window of the file in Windows Explorer.
  3. Observe that "This file came from another computer and might be blocked to help protect this computer." is written at the bottom of the window.
  4. The zone information can be viewed with the following terminal command: notepad.exe file.txt:Zone.Identifier

Expected behavior Since the file isn't coming from another computer, this alternate data stream should not be created.

Screenshots

Image Image

Desktop (please complete the following information):

  • OS: Windows 11 24H2 26100.4652
  • Version v1.5.6.0

Additional context When working on executable files, like batch scripts, this behavior causes a Windows Defender dialog to appear on execution on each new file change. Registry import files could also be used to test this.

Tech-How avatar Aug 12 '25 17:08 Tech-How