[英]Windows Firewall and %USERPROFILE% variable
I've discovered that using system variables as %USERPROFILE%
in Windows Firewall path definition like %USERPROFILE%\op\opera.exe
makes the firewall doesn't work for such defined application.我发现在 Windows 中使用系统变量作为
%USERPROFILE%
防火墙路径定义(如%USERPROFILE%\op\opera.exe
)会使防火墙不适用于此类定义的应用程序。 Changing the path to an explicit definition like C:\Users\Mark\op\opera.exe
does work.将路径更改为显式定义(如
C:\Users\Mark\op\opera.exe
确实有效。 My question is why can't one use %USERPROFILE%
var in the firewall path definition?我的问题是为什么不能在防火墙路径定义中使用
%USERPROFILE%
var?
Firewall can't know which user's profile %USERPROFILE%
environment variable point, it should know the exact path of the application to find it.防火墙无法知道
%USERPROFILE%
环境变量指向哪个用户的配置文件,它应该知道应用程序的确切路径才能找到它。 Especially, if no user logged in, %USERPROFILE%
points to where?特别是,如果没有用户登录,
%USERPROFILE%
指向哪里?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.