haven't found anything about how to use linux environment vars (eg. ${SOME_DIR})in WinSCP Scripts.
WinSCP is escaping the dollar sign and does not resolve the vars.
Can someone tell me, if and how it is possible to use linux environments in WinSCP Scripts ?
I'm trying to syncronize a local folder with a folder on a server. The folder on the server
often changes its path (new version etc) and that's why it is accessed via an environment variable.
So my command looks like
synchronize local -delete -mirror "%SPEC_PATH%\idl" "${SPEC_PATH}/idl"
but resolution of the linux env. var fails. Even escaping doesn't help.
All i get is: Error listing directory '${SPEC_PATH}/idl'.
Ok, I see. Remote variables are not resolved in WinSCP commands (local are). There's no way to find value of the remote variables, at least with SFTP and FTP protocols.