Use macros to create folders and files

Need new test, action, option? Post request here.
Post Reply
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Use macros to create folders and files

Post by xcentric »

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: Select all

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.

Image

Again if there is a way I am not aware of please enlighten me.

Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I am not sure where do you want to use these variables :roll:
"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
Post Reply