Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Comparing file modification dates (https://www.kinook.com/Forum/showthread.php?t=2751)

ambalboa 06-27-2007 04:10 PM

Comparing file modification dates
 
Every time I run the Make VB6 action step, executables are created and stored on a folder. They are renamed before they are moved to avoid overwriting files. At this point, there are too many files on there, and I would like to be able to process the files, get their modification date, which I am able to do, and delete the oldest one. However, when I try to find the file with the oldest modification date, I'm not successful. I don't get errors, the step runs fine, but the oldest file is not selected out of all of them.

I need to be sure I find the oldest modified file before deleting it. I'm using 'Run Script' action step, I get the dates, I do an If/else comparison. I will then delete the file and make the process repeat after a predetermined number of files are left (the most current). Thank you for your help and time.

kinook 06-27-2007 04:42 PM

1 Attachment(s)
See attached sample.


All times are GMT -5. The time now is 12:10 PM.


Copyright © 1999-2023 Kinook Software, Inc.