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
Possible to use macro in Email Attach File field?
-
- Posts: 34
- Joined: Mon Apr 28, 2008 10:15 am
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Please, use the following expression:
Regards,
Max
Code: Select all
C:\tempdir\%yyyy%%mm%%dd%_FileLog.txt
Max
-
- Posts: 34
- Joined: Mon Apr 28, 2008 10:15 am
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

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