Page 1 of 1

File Monitor Parameters

Posted: Mon May 13, 2019 3:53 pm
by renders
Hello.. I have a simple file monitor running which basically watches a folder for new wav files, copies them to another folder and deletes the original. I would like to have an email sent out everytime the transfer takes place with the name of the file that was moved. I tried adding a filename variable to the Pass as Parameters but the email does not seem to catch this..

What is the best way to handle this?

Thanks

Re: File Monitor Parameters

Posted: Tue May 14, 2019 8:17 am
by Oleg
Maybe you do something wrong.
Look at my example, it works.
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Do not forget to enable the task after importing.

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1040932817
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task19"
Hide=INTEGER|0
ID=INTEGER|-1021423029
LogOnAsUser=INTEGER|1
Name=STRING|"Show ""{files}""..."
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER

[Actions\Action1]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""New files:"""
Params=FOLDER

[Actions\Action1\Params]
icon=STRING|"1"
msg0=STRING|"New files:"
msg1=STRING|"{files_n}"
msg3=STRING|"Deleted files:"
msg4=STRING|"{files_d}"
msg6=STRING|"Changed files:"
msg7=STRING|"{files_e}"
msgcount=STRING|"8"
playsound=STRING|"0"
showmessage=STRING|"1"

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_FILE_MONITOR"
Name=STRING|"File Monitor"
Params=FOLDER
UniqueID=INTEGER|-1672530239

[Events\Event1\Params]
chg=STRING|"1"
chga=STRING|"1"
chglistparameter=STRING|"Files_e"
chgsl=STRING|"1"
chgsm=STRING|"1"
chgtl=STRING|"1"
chgtm=STRING|"1"
del=STRING|"1"
dellistparameter=STRING|"files_d"
folder1=STRING|"D:\incoming"
foldercount=STRING|"1"
incmask=STRING|"*.*"
interval=STRING|"10"
listmode=STRING|"1"
mon_files=STRING|"1"
mon_folders=STRING|"0"
new=STRING|"1"
newlistparameter=STRING|"files_n"
onelistparameter=STRING|"files"
pass=STRING|"1"
passmode=STRING|"2"
required=STRING|"1"
saveresults=STRING|"0"
subfolders1=STRING|"1"


Could you send you send your task to me in private message or to direct email oleg(at)robotask.com?

Re: File Monitor Parameters

Posted: Tue Aug 20, 2019 9:15 pm
by renders
Sorry for the long delayed response..

Your example worked perfectly for my needs..

Thank you.