用于解除阻止从 Internet 复制的文件的批处理文件 [英] Batch file to unblock files copied from internet

查看:12
本文介绍了用于解除阻止从 Internet 复制的文件的批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们从 Internet 复制文件 (dll) 时,Win7 会阻止它.当我们获取文件属性时,取消阻止选项如下图所示.我可以使用什么命令从批处理文件中取消阻止文件?

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?

推荐答案

应该可以这样:

echo.>myDownloadedFile.exe:Zone.Identifier

在此处查看更详细的讨论,使用 PowerShell 取消阻止文件?,其中还介绍了使用 Powershell 和 SysInternals 的 streams 工具的其他方法.

See a more detailed discussion here, Unblock a file with PowerShell?, which also describes other approaches using Powershell and the streams tool from SysInternals.

这篇关于用于解除阻止从 Internet 复制的文件的批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆