Hi all.. I would like to monitor a network folder for new files and send an email alert only when a new file is detected..
Any suggestions on how to do this?
Thank you for any assistance..
Email alert on new file in folder
Re: Email alert on new file in folder
Use File monitor trigger for the task
It can monitor mapped folders (for example z:\Reports\reports2020)
also you can use UNC names (for example \\Server1\SharedFolder\Reports\reports2020)
It can monitor mapped folders (for example z:\Reports\reports2020)
also you can use UNC names (for example \\Server1\SharedFolder\Reports\reports2020)
Oleg Yershov
Re: Email alert on new file in folder
Thanks Oleg.. Here is what I cam up with.. Works fine..
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|0
Comment=STRINGLIST
ContinueOnError=INTEGER|2
DoNotStopWhenShutdown=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task5"
Hide=INTEGER|0
ID=INTEGER|-469501598
LogOnAsUser=INTEGER|1
Name=STRING|"MonitorAudioImport Fail"
OnErrorTaskID=INTEGER|618766971
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
[Actions\Action1]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER
[Actions\Action1\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"8"
type=STRING|"0"
value1=STRING|"{files_n}"
[Actions\Action2]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action2\Params]
message=STRING|"{files_n} Transfer failed"
type=STRING|"3"
[Actions\Action3]
ActionID=STRING|"A_INET_SENDMAIL"
Enabled=INTEGER|-1
Name=STRING|"Send Email"
Params=FOLDER
[Actions\Action3\Params]
attachcount=STRING|"0"
auth=STRING|"1"
cc=STRING|"??@??.com"
charset=STRING|"iso-8859-1"
from=STRING|"AudioImportMonitor@??.com"
host=STRING|"mail.com"
html=STRING|"0"
msg0=STRING|"{ExtractFileNameNoExt({files_n})} failed to import.."
msg2=STRING|" Please try it again."
msgcount=STRING|"3"
password=STRING|"fakepassword"
port=STRING|"25"
priority=STRING|"1"
receipt=STRING|"0"
SSL=STRING|"0"
subject=STRING|"{ExtractFileNameNoExt({files_n})} Failed to Import"
to=STRING|"??@??.com"
user=STRING|"??@??.com"
xmailer=STRING|"RoboTask"
[Actions\Action4]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_FILE_MONITOR"
Name=STRING|"File Monitor"
Params=FOLDER
UniqueID=INTEGER|-93055329
[Events\Event1\Params]
chg=STRING|"0"
chga=STRING|"1"
chgsl=STRING|"1"
chgsm=STRING|"1"
chgtl=STRING|"1"
chgtm=STRING|"1"
del=STRING|"0"
folder1=STRING|"O:\AudioImport\Moved_files"
foldercount=STRING|"1"
incmask=STRING|"*.wav"
interval=STRING|"5"
listmode=STRING|"1"
mon_files=STRING|"1"
mon_folders=STRING|"0"
new=STRING|"1"
newlistparameter=STRING|"files_n"
pass=STRING|"1"
passmode=STRING|"2"
required=STRING|"1"
saveresults=STRING|"0"
subfolders1=STRING|"0"