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

saschmeling

Variable in File Name

Hi,

I am extremely new to WinSCP but am looking for a way to pass a variable to a file name. I want to use WinSCP to automate a get command to retrieve the latest file in a folder from an SFTP site.

So basically it would be

Get: https:\\XXXX.com\xxxx\xxxx. I know you can use the latest command but am not quite sure how that works.

On top of that I want to grab yesterday's file as well in certain cases hence the date variable.

Any help would be appreciated.
Thanks