Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

joshb3

Here's the script:
option batch on
option confirm off
open ftp://anonymous:xxx@xxx.xxx.xxx.xxx/
cd \lan\drop
lcd c:\filetran\dropup
option exclude thumbs.db
put -delete *.*
close
exit


The delete part fails for read-only files with the error:
System Error. Code: 5. Access is denied
joshb3

Deleting read-only files

We use WinSCP for an automatic file transfer job where it FTPs files to a folder on a remote computer, then deletes the files at the source location. The deletion part fails and exits out though if the file is marked as read-only.

Is there a way to either have WinSCP delete read-only files, or mark all files as non-read-only before the deletion step?