Thanks, I have another question here. I am using the following script which kind of works. The script is checking the modifed date of a file and if its more than a month it runs the audit. But every time you run the script the modified date of this file is getting changed just checking it. This is a file that is created by the audit32.exe and I know the audit is not running because its not in the task manager and it doesnt create an xml file in the target directory. It seems that just checking the modified date of the file is actually changing that date. Is this true? If this is the case then it will never run again because it will always be less than a month old. I am using 4.22
Code:
$DoInvent = "no"
$InventFile = "C:\trackitaduit.id"
IF EXIST("$InventFile") = 0
$DoInvent = "yes"
ELSE
$FileMonth = SUBSTR(GETFILETIME("$InventFile"), 6, 2)
$ThisMonth = SUBSTR(@DATE, 6, 2)
IF $FileMonth <> $ThisMonth
$DoInvent = "yes"
ENDIF
ENDIF
IF $DoInvent = "yes"
RUN @LDRIVE + "\pcaudit\audit32.exe"
ELSE
ENDIF