;***************************** ;* RoboTask Task file ;* Do not edit in text editor! ;***************************** [Root] ActionAfterRun=INTEGER|0 Actions=FOLDER Automat=INTEGER|0 CatID=INTEGER|0 ContinueOnError=INTEGER|0 ExternalName=STRING|"Task527" Hide=INTEGER|0 ID=INTEGER|1467145900 LocalVariables=STRING|"OLDEST_TIME,OLDEST_FILE,C_FILENAME,C_FILETIME" LogOnAsUser=INTEGER|1 Name=STRING|"Oldest file in folder" OnErrorTaskID=INTEGER|0 Priority=INTEGER|3 RunOnClose=INTEGER|0 RunOnStartup=INTEGER|0 ToLog=INTEGER|2 WriteGeneralLog=INTEGER|0 [Actions] Action1=FOLDER Action2=FOLDER Action3=FOLDER Action4=FOLDER Action5=FOLDER Action6=FOLDER Action7=FOLDER Action8=FOLDER Action9=FOLDER [Actions\Action1] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""OLDEST_TIME"" with value ""{DateTime}""" Params=FOLDER [Actions\Action1\Params] expand=STRING|"1" varname=STRING|"OLDEST_TIME" varvalue=STRING|"{DateTime}" [Actions\Action2] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""OLDEST_FILE"" with value """"" Params=FOLDER [Actions\Action2\Params] expand=STRING|"0" varname=STRING|"OLDEST_FILE" [Actions\Action3] ActionID=STRING|"A_LOOP_FILE" Enabled=INTEGER|-1 Name=STRING|"File Loop" Params=FOLDER [Actions\Action3\Params] createmode=STRING|"1" date1=STRING|"20071016" date2=STRING|"20071016" destvar=STRING|"C_FILENAME" DuringDays=STRING|"1" DuringMonths=STRING|"1" file0=STRING|"C:\incoming\*.*" filecount=STRING|"1" OlderDays=STRING|"1" OlderMonths=STRING|"1" savesize=STRING|"0" searchkind=STRING|"0" subdirs=STRING|"1" timesize=STRING|"1" timevar=STRING|"C_FILETIME" WithoutPath=STRING|"0" [Actions\Action4] ActionID=STRING|"A_FLOW_IF" Enabled=INTEGER|-1 Name=STRING|"If Then" Params=FOLDER [Actions\Action4\Params] case=STRING|"0" operator=STRING|"3" type=STRING|"2" value1=STRING|"{oldest_time}" value2=STRING|"{c_filetime}" [Actions\Action5] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""OLDEST_TIME"" with value ""{c_filetime}""" Params=FOLDER [Actions\Action5\Params] expand=STRING|"1" varname=STRING|"OLDEST_TIME" varvalue=STRING|"{c_filetime}" [Actions\Action6] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""OLDEST_FILE"" with value ""{c_filename}""" Params=FOLDER [Actions\Action6\Params] expand=STRING|"1" varname=STRING|"OLDEST_FILE" varvalue=STRING|"{c_filename}" [Actions\Action7] ActionID=STRING|"A_FLOW_ENDIF" Enabled=INTEGER|-1 Name=STRING|"End If" [Actions\Action8] ActionID=STRING|"A_LOOP_END" Enabled=INTEGER|-1 Name=STRING|"End Loop" [Actions\Action9] ActionID=STRING|"A_DIALOG_MESSAGE" Enabled=INTEGER|-1 Name=STRING|"Show ""Oldest file is {oldest_file} """ Params=FOLDER [Actions\Action9\Params] icon=STRING|"1" msg0=STRING|"Oldest file is {oldest_file} " msg1=STRING|"time {oldest_time}" msgcount=STRING|"2" playsound=STRING|"0" showmessage=STRING|"1"