Re: VBScript, Retrieving files and deleting files via ftp
The
If you want to download a file and remove the original, use
See https://winscp.net/eng/docs/scriptcommand_get
-delete
switch of synchronize
deletes obsolete files in the target (local in this case) directory. Not downloaded files, that would not be a synchronization. The point of synchronization is to make contents of both directories identical.
If you want to download a file and remove the original, use
get -delete *.csv
.
See https://winscp.net/eng/docs/scriptcommand_get