;********************** ;* RoboTask Task file * ;* Do not edit! * ;********************** [Root] ActionAfterRun=INTEGER|0 Actions=FOLDER Automat=INTEGER|-1 CatID=INTEGER|751543823 ContinueOnError=INTEGER|0 ExternalName=STRING|"Task471" Hide=INTEGER|0 ID=INTEGER|1249140409 Name=STRING|"Extract two last subfolders" Priority=INTEGER|3 RunOnClose=INTEGER|0 RunOnStartup=INTEGER|0 ToLog=INTEGER|3 [Actions] Action1=FOLDER Action10=FOLDER Action2=FOLDER Action3=FOLDER Action4=FOLDER Action5=FOLDER Action6=FOLDER Action7=FOLDER Action8=FOLDER Action9=FOLDER [Actions\Action1] ActionID=STRING|"A_MISC_COMMENT" Enabled=INTEGER|-1 Name=STRING|"//The task extracts two last subfolders from long path name" Params=FOLDER [Actions\Action1\Params] comment=STRING|"The task extracts two last subfolders from long path name" [Actions\Action10] ActionID=STRING|"A_DIALOG_MESSAGE" Enabled=INTEGER|-1 Name=STRING|"Show ""{short_path}""" Params=FOLDER [Actions\Action10\Params] icon=STRING|"1" msg0=STRING|"{short_path}" msgcount=STRING|"1" playsound=STRING|"0" showmessage=STRING|"1" [Actions\Action2] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""BIG_PATH"" with value ""/this/path/is/to/long/To_get_here/data""" Params=FOLDER [Actions\Action2\Params] expand=STRING|"0" varname=STRING|"BIG_PATH" varvalue=STRING|"/this/path/is/to/long/To_get_here/data" [Actions\Action3] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""SHORT_PATH"" with value ""{ExtractFileName({big_path})}""" Params=FOLDER [Actions\Action3\Params] expand=STRING|"1" varname=STRING|"SHORT_PATH" varvalue=STRING|"{ExtractFileName({big_path})}" [Actions\Action4] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""BUFFER"" with value ""{ExtractFileName({ExtractFilePath({big_path})})}""" Params=FOLDER [Actions\Action4\Params] expand=STRING|"1" varname=STRING|"BUFFER" varvalue=STRING|"{ExtractFileName({ExtractFilePath({big_path})})}" [Actions\Action5] ActionID=STRING|"A_FLOW_IF" Enabled=INTEGER|-1 Name=STRING|"If Then" Params=FOLDER [Actions\Action5\Params] case=STRING|"0" operator=STRING|"8" type=STRING|"0" value1=STRING|"{buffer}" [Actions\Action6] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""SHORT_PATH"" with value ""/{buffer}/{short_path}""" Params=FOLDER [Actions\Action6\Params] expand=STRING|"1" varname=STRING|"SHORT_PATH" varvalue=STRING|"/{buffer}/{short_path}" [Actions\Action7] ActionID=STRING|"A_FLOW_ELSE" Enabled=INTEGER|-1 Name=STRING|"Else" [Actions\Action8] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""SHORT_PATH"" with value ""/{short_path}""" Params=FOLDER [Actions\Action8\Params] expand=STRING|"1" varname=STRING|"SHORT_PATH" varvalue=STRING|"/{short_path}" [Actions\Action9] ActionID=STRING|"A_FLOW_ENDIF" Enabled=INTEGER|-1 Name=STRING|"End If"