testFile()
Determines if a file exists on a managed machine. Enter the full path and file name. testFile() compares the full path and file name with the supplied value. If the check is true, IF commands are executed. If the check is false, ELSE steps are executed.
NOTE Environment variables such as %windir%\notepad.exe
are acceptable.
The available tests are:
Exists
: true if the full path and file name exists.Does not Exist
: true if the full path and file name does not exist.Contains
: true if the test value is a sub string of the file content. (Case Sensitive)Not Contains
: true if the test value is not a sub string of the file content. (Case Sensitive)Begins With
: true if the test value begins with the variable value.Ends With
: true if the test value ends with the variable value.
Example - Core.1 Windows Procedures.Desktops.Machine Control.Networking.Block Websites.Clear All Blocked Websites
If testFile("%windir%\System32\drivers\etc\hosts") Exists