maloysius Posted November 19, 2019 Share Posted November 19, 2019 Hello AutoIt-verse! I am hoping to get some advice on a problem I am having. I have made a script that goes alongside a Point of Sale program I use frequently. It monitors running modules, runs maintenance on the computer, and auto patches. First it patches the server, and then the terminals attached to the server. With this Point of Sale program, there are a few ways it can fail patching. I have fail-safes in for the server, where it sends me an email if the patch fails. However, I am trying to find a way for the terminals to report to the server whether or not they have successfully patched, because they are not on the internet. The terminals actually do create logs on the server with the information I need, but it creates them with the same name for each log, and creates the log with the extension of *.001, *.002, *.003, and so on indefinitely unless the logs are cleared out. Whoever thought that great idea up needs a stern talking to. These files are openable in Notepad, but because of the weird file extension, I can't think of a way to have AutoIt sift through these specific logs and extrapolate date from them. I know this is a weird one, I tried to put in as much context as I could. Does anyone have any ideas?? Thank you in advance! Link to comment Share on other sites More sharing options...
Subz Posted November 19, 2019 Share Posted November 19, 2019 Use _FileListToArrayRec (<path>, "filename*.*, 1) Use _ArraySort to sort by name or use FileGetTime to find the latest version first. maloysius 1 Link to comment Share on other sites More sharing options...
maloysius Posted November 19, 2019 Author Share Posted November 19, 2019 I'll check it out, thanks for the info Subz! 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