Post a reply

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)


Topic review


Variable in File Name


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\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.