Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

pcolina

PostRe: winscp put -delete problem

Thank you! Working perfectly now!
martin

Re: winscp put -delete problem

You are uploading folder Out, right? The Out is moved to the remote directory (/targetFolder/Out is created). So Out is also removed.

If you want to move just files, use
put -delete "C:\TEMP\Out\*" /targetFolder/
pcolina

winscp put -delete problem

Hi everyone,

I'm trying to upload some files to a remote server using a winscp script with deletion of the file uploaded, but instead of just deleting the files, it deletes all directory.

Could you tell me where is my mistake?

My script looks like:


put -delete "C:\TEMP\Out\" /targetFolder/

close
exit


After finishing the process, the files content has been uploaded, but the Folder "out" (with all its content) has been also deleted.

Can anyone help me?