book
Article ID: KB0094364
calendar_today
Updated On:
Description
Resolution:
For example, you want to monitor log file with <yymmdd> in the name.
Run "date /t" in command window, you might get different result with different localization setting.
1. If "mm/dd/yyyy", use `cmd /c "echo %date:~8,2%%date:~0,2%%date:~3,2%"`.
2. If "dd/mm/yyyy", use `cmd /c "echo %date:~8,2%%date:~3,2%%date:~0,2%"`.
Change the command according to the result as above.
*** sample rulebase attached.
Issue/Introduction
How to monitor log file whose name contains date stamp with windows date command?