Posted: 2016-10-03 16:36
We are using the below script for archiving the files.
E:\app\WinSCP\WinSCP.exe /console /command "option batch on" "option confirm off" "open sftp://user:server:port" "mget -delete -filemask=<60D /Source/ Destination\" "ëxit"
It's coping and deleting the files (older than 60 days) including files under sub folders to destination but it is deleting the Sub-folders as well if they are older than 60 days.
We just want only files to be removed after successful transmission not sub-folders.
Can someone please advise what needs to be done for that.
Location: Prague, Czechia
You can post new topics in this forum
And it's free!