This makes me curious to know if UC4 will automatically delete the downloaded file when the task completes?
If the agent treats these files in the same was as it treats the script files for external interpreter code blocks, then it removes them after the job has completed.
exactly!
here my example, a WIN job
Process:
:attach_res "STORE.EXAMPLE", SAMPLESTORE ,T,Y
set /p var=<&$AGENT_RESOURCES_TASK#exampleSTORE.txt
echo %var%
:REGISTER_VARIABLE "variable#", %var%
post_process:
:p &variable#
Report:
c:\>set /p var= 0<C:\UC4\agents\WS112\agents\VWGSUP15_WS112_X64_02_SYS\Resources\0022\0001079481\exampleSTORE.txt
c:\>echo ProcessedbyAE11.2Schubiduba.
ProcessedbyAE11.2Schubiduba.
Post process report:
2016-06-14 12:26:22 - U00020408 ProcessedbyAE11.2Schubiduba.