Hi I am using File & Directory Change Monitor to monitor a directory for new files. I want the action to be an email alert that lists the new files in the directory. I have seen that I can use the $Item(x)$ variable. How do I list all items if I don't know the number of items in total? How can I format the email message with this variable so that it lists all items.

Kind regards Karsten Stolten

asked 13 Jun '19, 05:08

KMStolten's gravatar image

KMStolten
91812
accept rate: 0%


Hi Karsten,

There is another variable that you can use to get all details that your monitor fined. It's called $Details$. So if there is four new files that information will be reported in the $Details$ variable.

https://www.poweradmin.com/help/pa-server-monitor-8-0/action_variables.aspx

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 13 Jun '19, 13:15

Quinn's gravatar image

Quinn ♦♦
14.4k3925
accept rate: 35%

Hi Quinn

Thank you for your reply. :o)

I know about that Variable - but I want only the "Items" listed in the email alert - and not all the other info that comes with the $Details$ variable.

Is this possible somehow via som sort of script or maybe this is subject to a feature-request for a variable parameter like "$Items(#)" for "all items"? :o)

Kind regards Karsten

link

answered 14 Jun '19, 00:48

KMStolten's gravatar image

KMStolten
91812
accept rate: 0%

Karsten,

You could write your own Execute Script Action where you would get the information from the monitor and then create your alert message. Part of the message would be looping through the "Item(x)" values and adding them to the message. Then you could send the email from this action with the message that you have created.

I'm not sure if this will work of you or not but you could try it.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 14 Jun '19, 12:06

Quinn's gravatar image

Quinn ♦♦
14.4k3925
accept rate: 35%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×44
×8
×2

Asked: 13 Jun '19, 05:08

Seen: 1,983 times

Last updated: 14 Jun '19, 12:06