First, I'd like to say what a great program winscp is.
I've been tasked with automating the downloading of files from a remote server using a script. My requirements are:
1. Download all files and directories from the remote host
2. After downloading the files, I have to delete the remote files but NOT the remote directories.
3. I won't know ahead of time the names of the files or directories so I can't put those into my script.
4. My remote user id is a virtual user so I cannot use SSH to login after downloading and use standard Unix commands to delete the remote files.
get -preservetime -delete *.*
Any ideas about how I can delete the remote files but not the remote directories? Thanks.