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

Guest

Hi again,

I solve this by using following statement:

get *.csv>1D U:\%TIMESTAMP-1D#yyyy-mm-dd%.csv

Thanks
Guest

Get latest file and rename it with timestamp

Hi,

I´m having a problem trying to download the latest file and rename it with timestamp.

I tried to find/ understand a solution in the documentation but failing.

Hope someone of you can help me with a explanation/ example.

Script:

# Connect
open mysession
# Change remote directory
cd /export
# Force binary mode transfer
option transfer binary
# Download file to the local directory
get *.csv>1D D:\*.csv>1D.%TIMESTAMP-1D#yyyy-mm-dd%
# Disconnect
close