;***************************** ;* RoboTask Task file ;* Do not edit in text editor! ;***************************** [Root] ActionAfterRun=INTEGER|0 Actions=FOLDER Automat=INTEGER|0 CatID=INTEGER|1746330413 ContinueOnError=INTEGER|0 ExternalName=STRING|"Task666" Hide=INTEGER|0 ID=INTEGER|259036467 Name=STRING|"Rename files based on contents" Priority=INTEGER|3 RunOnClose=INTEGER|0 RunOnStartup=INTEGER|0 ToLog=INTEGER|3 WriteGeneralLog=INTEGER|0 [Actions] Action1=FOLDER Action10=FOLDER Action11=FOLDER Action12=FOLDER Action13=FOLDER Action14=FOLDER Action15=FOLDER Action2=FOLDER Action3=FOLDER Action4=FOLDER Action5=FOLDER Action6=FOLDER Action7=FOLDER Action8=FOLDER Action9=FOLDER [Actions\Action1] ActionID=STRING|"A_DIALOG_MESSAGE" Enabled=INTEGER|-1 Name=STRING|"Show ""This task renames text files *.EDI to:""" Params=FOLDER [Actions\Action1\Params] icon=STRING|"1" msg0=STRING|"This task renames text files *.EDI to:" msg1=STRING|"*.CTI if the string ""INVFIL"" appears in the file" msg2=STRING|"*.CTS if the string ""DELHDR"" appears in the file" msg3=STRING|"*.CTA if the string ""ACKHDR"" appears in the file" msg5=STRING|"(this is an example only)" msgcount=STRING|"6" playsound=STRING|"0" showmessage=STRING|"1" [Actions\Action10] ActionID=STRING|"A_FLOW_IF" Enabled=INTEGER|-1 Name=STRING|"If Then" Params=FOLDER [Actions\Action10\Params] case=STRING|"0" operator=STRING|"6" type=STRING|"0" value1=STRING|"ACKHDR" value2=STRING|"{TextFile({current_file})}" [Actions\Action11] ActionID=STRING|"A_FILE_RENAME" Enabled=INTEGER|-1 Name=STRING|"Rename File" Params=FOLDER [Actions\Action11\Params] count=STRING|"1" file0=STRING|"{current_file}" mask=STRING|"*.CTA" subdirs=STRING|"0" [Actions\Action12] ActionID=STRING|"A_FLOW_ENDIF" Enabled=INTEGER|-1 Name=STRING|"End If" [Actions\Action13] ActionID=STRING|"A_FLOW_ENDIF" Enabled=INTEGER|-1 Name=STRING|"End If" [Actions\Action14] ActionID=STRING|"A_FLOW_ENDIF" Enabled=INTEGER|-1 Name=STRING|"End If" [Actions\Action15] ActionID=STRING|"A_LOOP_END" Enabled=INTEGER|-1 Name=STRING|"End Loop" [Actions\Action2] ActionID=STRING|"A_FOLDER_CHANGE" Enabled=INTEGER|-1 Name=STRING|"Change Folder (c:\incoming)" Params=FOLDER [Actions\Action2\Params] folder=STRING|"c:\incoming" [Actions\Action3] ActionID=STRING|"A_LOOP_FILE" Enabled=INTEGER|-1 Name=STRING|"File Loop" Params=FOLDER [Actions\Action3\Params] createmode=STRING|"1" date1=STRING|"20080826" date2=STRING|"20080826" destvar=STRING|"CURRENT_FILE" DuringDays=STRING|"1" DuringMonths=STRING|"1" file0=STRING|"*.edi" filecount=STRING|"1" OlderDays=STRING|"1" OlderMonths=STRING|"1" savesize=STRING|"0" searchkind=STRING|"0" subdirs=STRING|"0" timesize=STRING|"0" WithoutPath=STRING|"1" [Actions\Action4] ActionID=STRING|"A_FLOW_IF" Enabled=INTEGER|-1 Name=STRING|"If Then" Params=FOLDER [Actions\Action4\Params] case=STRING|"0" operator=STRING|"6" type=STRING|"0" value1=STRING|"INVFIL" value2=STRING|"{TextFile({current_file})}" [Actions\Action5] ActionID=STRING|"A_FILE_RENAME" Enabled=INTEGER|-1 Name=STRING|"Rename File" Params=FOLDER [Actions\Action5\Params] count=STRING|"1" file0=STRING|"{current_file}" mask=STRING|"*.CTI" subdirs=STRING|"0" [Actions\Action6] ActionID=STRING|"A_FLOW_ELSE" Enabled=INTEGER|-1 Name=STRING|"Else" [Actions\Action7] ActionID=STRING|"A_FLOW_IF" Enabled=INTEGER|-1 Name=STRING|"If Then" Params=FOLDER [Actions\Action7\Params] case=STRING|"0" operator=STRING|"6" type=STRING|"0" value1=STRING|"DELHDR" value2=STRING|"{TextFile({current_file})}" [Actions\Action8] ActionID=STRING|"A_FILE_RENAME" Enabled=INTEGER|-1 Name=STRING|"Rename File" Params=FOLDER [Actions\Action8\Params] count=STRING|"1" file0=STRING|"{current_file}" mask=STRING|"*.CTS" subdirs=STRING|"0" [Actions\Action9] ActionID=STRING|"A_FLOW_ELSE" Enabled=INTEGER|-1 Name=STRING|"Else"