I wrote the simple script below to download files from an SFTP server. While it downloaded the files successfully, it also deleted them from the server. Reading through the documentation, I thought that the files would only be deleted if I used the -delete argument in the get command. Please advise. Thanks!
# Change remote directory
# Download file to the local directory d:\
get * c:\users\me\desktop\TestWinScp\