I am running ZEN6.5

How do I copy a folder from the local drive to the network on logoff,
without any user intervention?
I know how to create a ZEN app that copies a folder from network to
local drive on login, but not on logoff.

Thanks for the help