Posted: 2008-09-24 22:23
Is it possible to access shell variable in a Winscp script?
Say before transferring FILE1 I want to make sure that FILE2 is present. I could write the following line of code:
call test -a FILE2 && export myFile=FILE1 || myFile=DUMMY
Next command would be the actual get:
The GET will succeed or fail accordingly, which is fine for if FILE2 does not exist then the transfer of FILE1 should not occur.
The question is how to make known to Winscp the variable myFile.
I appreciate your help.
Location: Prague, Czechia
No you cannot access remote shell variables.
You can post new topics in this forum
And it's free!