Batch file to unblock files copied from internet
batch-file, windows, windows-7
Solution
Supposedly this should work:
echo.>myDownloadedFile.exe:Zone.Identifier
See a more detailed discussion here, Unblock a file with PowerShell?, which also describes other approaches using Powershell and the `streams` tool from SysInternals.
Problem
When we copy files (dll) from internet, Win7 blocks it. The unblock option appears as in the following image when we take the file properties. What command can I use to unblock the file from a batch file?