Hi,
in Relevance, how to program a folder path with running date?
eg: c:\temp\yyyymmdd\error.log (yyyymmdd is today’s date)
I wish to check error log from Analysis but no idea how to handle the date part in file path, everyday new folder created with name by that date,
Q: exists files "error.log" of folders (((year of it as string & month of it as two digits & day_of_month of it as two digits) of date ("GMT" as time zone) of it) of (now)) of folders "c:\temp"
A: True
T: 0.458 ms
I: singular boolean
Q: exists files ("C:\Temp\" & (((year of it as string & month of it as two digits & day_of_month of it as two digits) of date ("GMT" as time zone) of it) of (now)) & "\error.log")
A: True
T: 0.253 ms
I: singular boolean
You can replace “(now)” with “(apparent registration server time)” which can overcome possible issues with local clocks not being correct (it depends on what process the folder date is created by, maybe local machine will suit your specific requirements)