Posted: 2016-06-13 10:11
If both /script and /command parameters are used, commands from script file are executed first.
Would it be possible to create a switch that makes winscp run the commands first and then the script?
I have a very long list of commands that I want to execute in just one go, so only using commands is out of the question and storing the user/password in plaintext in the script is again out of the question... the perfect solution would be to first login through the commands and then go through the long list of commands in the script...
Would that be possible? I'd really appreciate it
Location: Prague, Czechia
You can do it like:
Or even better, use environment variables in the script:
See also https://winscp.net/eng/docs/guide_protecting_credentials_for_automation
You can post new topics in this forum
And it's free!