This script is a custom monitoring script that will alert if a file is not in a particular folder.
Run the script as custom monitoring script as shown in the below wiki: https://wiki.comodo.com/frontend/web/topic/how-to-use-custom-script-procedure-monitoring
Kindly provide the path of the folder and the filename .
path=r’C:\Users\shinchan\Desktop\folder’ #Provide the path of the folder
file1=‘ABC.exe’ #Provide the file name
Refer the below link for the script- Alert if a file is not in a particular folder :