Kaspersky Endpoint Security 11 for Windows

Rules for creating name masks for files or folders

April 25, 2024

ID 187478

A mask of a file or folder name is a representation of the name of a folder or name and extension of a file using common characters.

You can use the following common characters to create a file or folder name mask:

  • The * (asterisk) character, which takes the place of any set of characters (including an empty set). For example, the C:\*.txt mask will include all paths to files with the txt extension located in folders and subfolders on the (C:) drive.
  • The ? (question mark) character, which takes the place of any single character, except the \ and / characters (delimiters of the names of files and folders in paths to files and folders). For example, the mask C:\Folder\???.txt will include paths to all files residing in the folder named Folder that have the TXT extension and a name consisting of three characters.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.