Shell variable in a Winscp script

Advertisement

plois00
Joined:
Posts:
6

Shell variable in a Winscp script

Hello,

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:

get myFile

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.
thank you,
PL

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum