Posted: 2014-06-30 19:09
I have a file named datafile-2014-06-30.txt in an SFTP location and I am trying to copy to a different location. (Date is today's date)
I have written the following script, but it fails with an error: Can't get attributes of the file '%file%'
option batch on
option confirm off
Any help on this would be great. Thanks.
Location: Prague, Czechia
You seem to be mixing WinSCP and Windows commands.
See this (otherwise unrelated) article to learn how to work with environment variables in WinSCP script:
You can post new topics in this forum
And it's free!