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 技术交流群。

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

发布评论

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

词条统计

浏览:44 次

字数:4046

最后编辑:6年前

编辑次数:0 次

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