Hi
FrankMuffke,
I think only the :ATTACH_RES directive is able to understand the "NAME" of the stored item.You still need to use the actual name of your binary in the OS command (the 'dir' command in your case).
Here is a clearer example (the one in the documentation is a bit confusing):
https://us.v-cdn.net/5019921/uploads/editor/kl/xebeziu6elrr.jpg" width="754">
with the storage object being defined as:
https://us.v-cdn.net/5019921/uploads/editor/5s/l22zy1rmaest.jpg" width="1364">
The "NAME" of the resource item ("UPDATE_BIN") is only used in the ATTACH_RES directive. The directive itself basically instructs the agent to download the corresponding binary in a local agent folder, at which point, said binary becomes locally available in the &$AGENT_RESOURCES_CLIENT# Folder.
it then can be used with an OS command (a java command in my example).
Now, a valid question would be "why need a NAME and also the File Name ("File upload")?
I could be wrong but i think it is meant to allow the use of multiple versions of the same binary in a storage object without having to rely on other storage objects (see above: ANOTHER_ITEM and SOME_OTHER_ITEM both point to a binary of the same name but with different versions).
i hope this makes more sense?