- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to compare times after calling GetFileInfo
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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".