Re: Passing hostkey (sftp) as environment variable is not possible in batch scripting
Answer (SOLVED)
Thanks for your hints. I found the problem, sorry it was my fault.
The environment variable %PAR_3% was not set correctly in the batchfile, sorry.
The following command in the script works perfect, the hostkey is resolved correctly
open sFtp://%PAR_1%:%PAR_2%@IP:Port/ -hostkey=%PAR_3%
Regards
Thanks for your hints. I found the problem, sorry it was my fault.
The environment variable %PAR_3% was not set correctly in the batchfile, sorry.
The following command in the script works perfect, the hostkey is resolved correctly
open sFtp://%PAR_1%:%PAR_2%@IP:Port/ -hostkey=%PAR_3%
Regards