Is it possible to do a directory listing and have the output e-mail to a specified recipients?
Thanks,
Scott
Yessir, it is. As long as you just want something simple such as all the files in c:\Windows\ listed (no details, etc... just the listing of files.
1. Create a new blank Job
2. Create a new Task, "List File(s)" is the task type.
3. Under the list files tab for "Folder" specify the folder you want to look in
4. Also under the list files tab, if you want to only look at *.TXT change the "Include File Mask" to *.TXT intead of * By default it will list ALL files.
5. Save the List Files task. Go ahead and run that task, you'll see the "Output" will now have a list of files it saw in the directory.
We're going to use the Output from that task to send an e-mail.
6. Create a 2nd task (named whatever you like) and select "Email" as the task type. (I'm assuming you already have a connection created for sending e-mail in general)
7. Under the EMail Tab, select "Text" from the lower row of tabs.
8. In the box where you can enter text, enter the following:
{TASK(PrevTask,StdOut)}
What that does is, it uses the output from the previous task as the body of the e-mail. This does assume the 'List Files' task ran immediately before the e-mail task, as in "List Files is Task #1, and Send E-mail is Task #2"
Brian