Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7527059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:00:43+00:00 2026-05-30T04:00:43+00:00

Background In Windows 7, when a file is downloaded from the internet, some browsers

  • 0

Background

In Windows 7, when a file is downloaded from the internet, some browsers (e.g. IE and Firefox) flag it as coming from the internet. This is apparent in the properties dialog of the file, which will show a message and an “Unblock” button at the bottom of the properties window.

This property is stored as an alternate stream on the NTFS filesystem – specifically, a stream named “Zone.Identifier”. So on a blocked file, you can run the command more < file.exe:Zone.Identifier and you get the output:

[ZoneTransfer]
ZoneId=3

You can clear this data with the command echo. > file.exe:Zone.Identifier. This overwrites the above data with simply a blank line, and while the Zone.Identifier stream still exists on the file, the file is no longer “blocked” as confirmed by the properties dialog.

Problem

FAT32 file systems obviously don’t have NTFS alternate streams; so, the command echo. > file.exe:Zone.Identifier gives the output:

The filename, directory name, or volume label syntax is incorrect.

This is output to stdout, so adding 2>NUL on the end does not suppress it. Adding 1>NUL to the end DOES suppress it, however it also suppresses the command from doing anything useful; that is, if you run echo. > file.exe:Zone.Identifier 1>NUL, the Zone.Identifier stream remains.

How can I run the command echo. > file.exe:Zone.Identifier successfully on NTFS, and suppress its error output on FAT32?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:00:45+00:00Added an answer on May 30, 2026 at 4:00 am

    Command echo. > file.exe:Zone.Identifier 1>NUL causes redirection of echo. to NUL, the first redirection is ignored.

    Adding 2>NUL causes redirection of echo’s stderr to NUL. The message you are trying to avoid is printed to stderr by failed redirection and not by echo command by itself.

    The solution is to devide the command into two phases by using brackets:

    (echo. > file.exe:Zone.Identifier) 2>NUL
    

    This will cause echo. to be executed first and its output redirected to alternative file stream. If trying to write to alternative file stream on FAT filesystem failes, then it’s output to stderr will be redirected to NUL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use cwRsync to sync up some file from Windows to Ubuntu. This process
As a developer coming from a Windows background, I'd always find the different Powertoys
Background: I'm working on some code to read in data from a file. Examples
( background ) I'm using Java.io.File to do some windows directory searching. Basically the
Background In Visual Studio 2008 Create a new Windows Forms Application, this will create
Some background: we have a windows application (c#) that locate in the system try.
I am from a c# background and am converting a vb.net windows forms app
Windows Phone 7.1/7.5/Mango Silverlight App. Coming from here: Need clarification on using audio on
Background This is only my second PyQt4 project. Developing a Windows app that has
I come from a windows w/ visual-studio background for native development and I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.