Create dynamic date folder on log folder (YearMonth)

Get help for specific problems
Posts: 2
Joined: 13 Mar 2018

jprata

Hi,

I want to create in log folder, subfolders for each year-month, and all log files will be included in is year-month folder.
Example:
c:\LogFolder\201802\SomeLog 2018-02-10 153300.345.log
c:\LogFolder\201803\SomeLog 2018-03-14 153300.345.log

This means that 201802 and 201803 will be created dynamically when the month and the year changes, and all logs from that year-month will be created in that folder.

Regards,
JP.
Posts: 2
Joined: 13 Mar 2018

jprata

Hi,

Thank you it worked.

Regards,
JP