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

martin

Re: Use 'Recycle Bin' with Command Line

Thanks for your post. This bug has been added to tracker.
JRB_BMB

Use 'Recycle Bin' with Command Line

Hi,

Am using the Recycle Bin option on an SFTP connection I've established and when transferring files manually using the UI, winSCP happily uses an archive folder that I've setup. It places the old file after renaming it with a time and date into this directory on the FTP site with no issues.

When calling winSCP via the command line (through SSIS) it runs from a script that essentially does the same thing; opens connection, copies file to SFTP location, closes connection. (Script below fro reference)
However, this method doesn't use the Recycle Bin feature.

Is there an option I need to set in the script or in the command line options??

Any help would be much appreciated.
Thanks,
John


script I'm calling;
# Connect to saved session
Open SFTPSession

#Allow file overwrites
Option batch on
option confirm off

# Put a specific file in a location
put C:\Foldername\FileName.csv

# Close connection
close

# Exit WinSCP
exit