Script, is there a way to include a file which contains variables in an ini format?
I read the option page
https://winscp.net/eng/docs/scriptcommand_option
but I do not see any choice to include a file
i.e. option include
I will have many scripts, and to avoid typing the same information in each script, I wish to have those variables in 1 file, ie
and be able to include that file in my script with a command like
or
and have those variables be parsed and loaded in memory and available to the script
(like env variables but not actual env vars)
Is there any feature in WinSCP which can do this?
Thank you.
https://winscp.net/eng/docs/scriptcommand_option
but I do not see any choice to include a file
i.e. option include
myconfig.ini
I will have many scripts, and to avoid typing the same information in each script, I wish to have those variables in 1 file, ie
myconfig.ini
server_host="" hostkey="ssh-rsa blah blah blah"
option include
option import
(like env variables but not actual env vars)
Is there any feature in WinSCP which can do this?
Thank you.