Krillin Posted August 2, 2016 Share Posted August 2, 2016 Hi, I search since sometimes solution of my problem. I must read one ini file where it will tell me false=1 or false=0. Until now it's fine, but my script must get the most recent ini file in the same folder from the date where are actually. Example : monday.ini, tuesday.ini,... Do you have any solution for my case? thank you! Link to comment Share on other sites More sharing options...
mikell Posted August 2, 2016 Share Posted August 2, 2016 The most evident and easy solution is to name these files "20160802.ini" and so Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted August 2, 2016 Share Posted August 2, 2016 So is it just 7 .ini files that overwrite each week or do the file names also contain the year and month? Will the file you want always be the most recently modified one? Link to comment Share on other sites More sharing options...
Krillin Posted August 2, 2016 Author Share Posted August 2, 2016 @ViciousXUSMC yes exactly, the most recent modified one Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 2, 2016 Moderators Share Posted August 2, 2016 @Krillin how about the other part of ViciousXUSMC's question, are the filenames simple Monday, Tuesday, Wednesday, etc.? Or do they have dates in them as well? We need more information in order to assist. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Krillin Posted August 2, 2016 Author Share Posted August 2, 2016 Yes, each of them has the name, but they wont show the date. But finally i found it, using @wday. Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted August 2, 2016 Share Posted August 2, 2016 FileListToArray() --> FileGetTime() --> ArraySort() I have something I wrote that uses this concept to always find the most recently modified file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now