命令行太长(窗口)

时间:2018-04-02 08:40:44

标签: cmd netsh

当我运行" netsh advfirewall防火墙设置规则名称= aaaaaaaaaaaaaaaaaa dir = in protocol = tcp localport = 8899 new remoteip =" 5000 ips,这将是错误,我该怎么办?

1 个答案:

答案 0 :(得分:0)

命令的最大限制为250个字符

您可以使用代码块来解决此问题

C:\Users\Steve> (
    netsh advfirewall firewall set rule
    name= aaaaaaaaaaaaaaaaaa
    dir= in
    ...
)