Files and folders are removed from remote directory when I use get -delete
Hi,
I am having trouble getting files and deleting them from the server. When I do so, If the server directories are empty, they are being deleted as well. I was using a dummy file to prevent the directory being deleted, but the company has now put in place a rule to delete all files over 30 days old, so I can no longer use dummy files.
The command I am using is:
I am using a batch file to run WinSCP.
Can anyone please help me,
Thank you
Peter
I am having trouble getting files and deleting them from the server. When I do so, If the server directories are empty, they are being deleted as well. I was using a dummy file to prevent the directory being deleted, but the company has now put in place a rule to delete all files over 30 days old, so I can no longer use dummy files.
The command I am using is:
"lcd ""C:\Target\Dir\Temp_Download""" ^ "get ""/RootDir/*"" -delete -resume -preservetime -filemask=*.dat ""C:\Target\Dir\Temp_Download\""" ^
Can anyone please help me,
Thank you
Peter