-1

I know this will be a question thats answered many times but i just can't get it working.

I need to download some files on a daily basis but only the lastest versions. My script is able to download tthem all but i can't get the -latest switch working. Am I missing something? Many thanx!!

option confirm off

open sftp://loginname-sftp:[email protected]:9998

cd /data/Test
get -latest * -filemask=*>=%TIMESTAMP#dd-mm-yyyy% 
get -latest * /data/Test/*.xml "D:\Test\MH\"
get /data/Test/*.csv "D:\Test\QM\"

exit
1
  • We need to know more than "i can't get the -latest switch working". Do you get any error? Or what's wrong? Post session log file. Jan 7, 2022 at 11:31

1 Answer 1

-1

I fixed it by using the get -filemask="*>=1D" switch instead of -Latest

1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Jan 7, 2022 at 15:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.