This method of the ExecutionPermission Class adds specific applications to the set of programs that the permission allows. Applications are specified by a pattern string that can contain wildcard expressions.
public void includeApplications(String pattern);
includeApplications("notepad.exe");
includeApplications("c:\\anything\\*.exe");
Note This method does nothing if the permission object already specifies unrestricted access.
Pattern | The pattern that specifies the applications that are allowed. It can contain wildcard expressions. |
com.ms.util.WildcardExpression