Possible to use macro in Email Attach File field?

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
ironcurtain
Posts: 34
Joined: Mon Apr 28, 2008 10:15 am

Possible to use macro in Email Attach File field?

Post by ironcurtain »

I have tried using macro %%yyyy%%mm%%dd%% as part of a filename in the Email Action Properties "Attach File" field, but this does not seem to work.

For example
"C:\tempdir\%%yyyy%%mm%%dd%%_FileLog.txt"


The online instructions do not say this is possible, but it would be useful for attaching daily log files, for example.

http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Please, use the following expression:

Code: Select all

C:\tempdir\%yyyy%%mm%%dd%_FileLog.txt
Regards,
Max
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What version of HostMonitor do you use?
The online instructions do not say this is possible, but it would be useful for attaching daily log files, for example
Online instruction says this is posible.
You just used too much % signs, should be C:\tempdir\%yyyy%%mm%%dd%_FileLog.txt

Regards
Alex
ironcurtain
Posts: 34
Joined: Mon Apr 28, 2008 10:15 am

Post by ironcurtain »

Thank you I will try this :)
But I am worried that now I have hundreds of tests that are using incorrect macro syntax for file checks.

I am using the macro in this style for a file check:
Example: C:\{path}\%yyyymmdd[-1d]%_filename.txt

Must this also be in the following format please?
C:\{path}\%yyyy%mm%dd[-1d]%_filename.txt
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Must this also be in the following format please?
C:\{path}\%yyyy%mm%dd[-1d]%_filename.txt
No

Regards
Alex
Post Reply