View previous topic :: View next topic |
Author |
Message |
xcentric
Joined: 23 Oct 2010 Posts: 176
|
Posted: Sun Nov 27, 2011 2:11 am Post subject: Use macros to create folders and files |
|
|
If you want to email reports to different clients you need to create an action profile for each client then assign an email action with an attached report specific to that client. You could end up with TONS of action profiles.
I can think of a way to use a single dynamic action profile for ALL clients by allowing macros to dynamically create a folder and file name.
For instance, I use %FCommentLine1% for the company name.
With this macro I could tell a report to use the value to first create a folder then create a file. I could use this same piece of code in the reports tab for every client folder.
Code: | c:\Program Files (x86)\HostMonitor8\Reports\%FCommentLine1%\%FCommentLine1% - Monthly Statistics.htm |
Now that the report has been created, I can create a single action profile and use the same code again to fetch and send the report to all clients that have a report configured.
For report creation I did try this using the code above but received an error.
Again if there is a way I am not aware of please enlighten me.
Regards |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Nov 28, 2011 8:38 am Post subject: |
|
|
I am not sure where do you want to use these variables
"Generate reports" action does not allow any variables because you just select TestList folder used for the action. While reports list specified in Folder Properties dialog...
Regards
Alex |
|
Back to top |
|
|
|