m3f
m3f

Reputation: 81

Block windows file

There can be "This file came from another computer and might be blocked" message in file properties. Is there a way to block back file in windows 7? I need this for program testing.

Upvotes: 1

Views: 345

Answers (1)

Hans Passant
Hans Passant

Reputation: 941635

You have to recreate the alternate data stream for the file. The easiest way to do this is by using Notepad. Run cmd.exe and navigate to the directory that contains the file. I'll use test.txt as an example, type this command:

  Notepad "test.txt:Zone.Identifier"

Double quotes required. Notepad prompts you to create a new file, click Yes. Paste or write this:

  [ZoneTransfer]
  ZoneId=3

Press Ctrl+S to save.

Upvotes: 4

Related Questions