cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Lexicon
Flexera beginner

How to compare times after calling GetFileInfo

 

I am using the GetFileInfo function to get the time that a file was created. My code will compare the times that the files were created and will find out which file was most recently created.

Does anyone know of a way to compare the times of the files? For example here is how I find the time of the file
And an example of the times created for different files. 

GetFileInfo(FileName, FILE_DATE, nvResult, svResult)

Example of times returned:
"09:20:28"
"07:21:26"
"04:11:15"

 

 

Labels (1)
0 Kudos
1 Reply
Flexera banna_k
Flexera

Re: How to compare times after calling GetFileInfo

Hi @Lexicon ,

 

There is no installscript builtin function to compare the file time, you can write your own logic to compare the times or you can import win32 API function to compare time like "CompareFileTime". 

0 Kudos