I have a code that gets the modified time of a file.
What I want is to check in a loop that goes forever: If the modified time is over 10 minutes, then close the program.
My question is:
- How to make a if statement that runs forever?
- How to get current datetime to check against.
My code:
Code: Select all
FileGetTime, modifiedTime, %caseFilesDirectoryAddress%\%caseNumber%\IEF\%caseNumberYearJournalDistrictNumericTitleClean%\IEFv6.db ; Retrieves the modification time by default.
if(modifiedTime < ???){
WinWait, Internet Evidence Finder
WinClose Internet Evidence Finder
}