gpt4 book ai didi

windows - 如何在没有警告对话框的情况下从 Vista 中的网络共享运行批处理文件?

转载 作者:可可西里 更新时间:2023-11-01 10:02:06 25 4
gpt4 key购买 nike

The publisher could not be verified. Are you sure you want to run this software?

如何在启动时自动运行这个 bat 文件而不被弹出窗口阻止?批处理文件位于另一台计算机的网络共享中。

最佳答案

预计到达时间:您在评论中提到,从网络中的另一台机器运行批处理时会出现这种情况。在这种情况下,文件来自的区域几乎是不言而喻的,不需要在流中。您可以按照以下步骤删除该警告:

  1. 打开 Internet Explorer 的 1 Internet 选项
  2. 点击“安全”标签
  3. 选择“本地 Intranet”区域
  4. 点击“网站”按钮
  5. 点击“高级”按钮
  6. 添加您正在运行批处理的计算机的网络名称,如下所示:

    file://computername

This will cause the specified computer to count into the "Local intranet" zone which won't trigger the warning as you have chosen to trust it.

(Thanks to the How-To Geek on this one.)


For local batch files, the solution is not hard:

Batch files don't have digital signatures and, to my knowledge, can't have them. What you're seeing is likely the result of downloading the batch file from a website. This causes an Alternate Data Stream named Zone.Identifier to be created. You can remove this by choosing "Unblock" in the properties of the file

Illustration of the "Unblock" button in the properties dialog

or by redirecting nothing2 into the stream:

echo.>foo.cmd:Zone.Identifier

1 它们部分针对整个系统,部分针对 IE。

2 或者至少 Explorer 不会将任何内容识别为该流的有效内容。

关于windows - 如何在没有警告对话框的情况下从 Vista 中的网络共享运行批处理文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1248171/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com