Use wildcards 编辑
You can use DOS-style wildcard characters such as the question mark (?
) and asterisk (*
) in policies that refer to files (for example, file inclusion and exclusion lists). The question mark (?
) matches a single character. The asterisk (*
) matches zero or more characters.
As of Profile Management 7.15, you can use the vertical bar ‘|’
for applying a policy to only the current folder without propagating it to the subfolders.
Wildcards work recursively. Ensure that you specify a valid path when using wildcards.
Policies that support wildcards do not support any other type of processing, such as the use of environment variables or Active Directory attributes. You cannot use wildcards in policies that refer to folders or registry entries.
Examples
The wildcard <path name>\h*.txt
matches house.txt, h.txt, and house.txt.txt, but does not match ah.txt.
The wildcard <path name>\a?c.txt
matches abc.txt, but does not match ac.txt.
The wildcard <path name>\a?c*d.txt
matches abcd.txt and abccd.txt, but does not match acd.txt.
Configuring policies in profile root folder: *.txt
specifies all files with the extension .txt in the root folder and subfolders.
*h.txt
specifies all files that match this wildcard in the root folder and subfolders.
h*.txt
specifies all files that match this wildcard in the root folder and its subfolders.
a?c.txt
specifies all files that match this wildcard in the root folder and its subfolders.
*.txt|
specifies all files with the extension .txt in the root folder without propagating it to the subfolders.
Configuring policies in profile non-root folders:
Examples for a file name part starting with
*
or?
AppData\*.txt
specifies all files that match this wildcard in the directory AppData and its subfolders.AppData\*h.txt
specifies all files that match this wildcard in the directory AppData and its subfolders.Examples for a file name part not starting with
*
or?
AppData\h*.txt
specifies all files that match this wildcard in the directory AppData without propagating it to the subfolders.AppData\a?c.txt
specifies all files that match this wildcard in the directory AppData without propagating it to the subfolders.Note: As of Profile Management 7.15, such configuration is applied to not only the current folder but also the subfolders. For example,
AppData\h*.txt
specifies all files that match this wildcard in the directory AppData and its subfolders.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论