Use wildcards 编辑

You can use DOS-style wildcard characters such as the question mark (?) and asterisk (*) in policies that refer to files and folders. Examples include file inclusion and exclusion lists and folder inclusion and exclusion lists. The question mark (?) matches a single character. The asterisk (*) matches zero or more characters.

Starting with Profile Management 7.15, you can use the vertical bar (|) to restrict the policy only to the current folder.

Be aware of the following:

  • Wildcards in file names work recursively while wildcards in folder names don’t. Ensure that you specify a valid path when using wildcards.

  • Policies that support wildcards do not support any other type of variable, such as the use of environment variables or Active Directory attributes. You cannot use wildcards in policies that refer to 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 the profile root folder:

  • *.txt specifies all files with the extension .txt in the root folder and its subfolders.

  • *h.txt specifies all files that match this wildcard in the root folder and its 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 only in the root folder.

Configuring policies in non-profile root folders:

  • AppData\*.txt specifies all files that match this wildcard in the AppData folder and its subfolders.

  • AppData\*h.txt specifies all files that match this wildcard in the AppData folder and its subfolders.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:23 次

字数:3185

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文