Get latest file and rename it with timestamp

Advertisement

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

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum