10-27-2021 07:00 PM
Hello!
At work we have a device that we are constantly monitoring and logging temperature of.
Is there a simple way that I can have the path change automatically based on date?
Ideally it will log all day and once the date has changed, it will create a new folder can start then depositing all the data into that folder
Any thoughts or opinions are appreciated
10-27-2021 07:06 PM
Yes of course, if you have the source code for the application that is reading and logging the file. You would have to edit the source code of that application to change the path automatically based on the date.
If you do not have the source code of the application and the application does not have the means to change the paths externally, you can get away with creating a simple script that scans the logging directory for new files and moves it to a different path you would like.