Add ability to copy site password
Add the ability to view a site password and/or copy it to the clipboard. In this way the specified site password can be copied and used an another context.
Advertisement
Advertisement
Add the ability to view a site password and/or copy it to the clipboard. In this way the specified site password can be copied and used an another context.
open sftp://%USERNAME%:%PASSWORD%@example.com ...
@echo off set USERNAME=martin set PASSWORD=mypassword winscp.com /script=example.txt
See https://beta.winscp.net/eng/docs/faq_passwordAdd the ability to view a site password and/or copy it to the clipboard. In this way the specified site password can be copied and used an another context.
See https://beta.winscp.net/eng/docs/faq_passwordAdd the ability to view a site password and/or copy it to the clipboard. In this way the specified site password can be copied and used an another context.
/loglevel=0*- to disable password logging.
Advertisement
Anyway, you can use/loglevel=0*-to disable password logging.
I've documented this: https://beta.winscp.net/eng/docs/commandline#logging
In general, you should always isolate your script from the GUI configuration to avoid these kind of problems:
https://beta.winscp.net/eng/docs/scripting#configuration
Add the ability to view a site password and/or copy it to the clipboard. In this way the specified site password can be copied and used an another context.
What do you mean by "view a site password"?
When you use WinSCP scripting you can keep it in %PASSWORD% and use it any where you want in your script.
https://beta.winscp.net/eng/docs/guide_protecting_credentials_for_automation#scripting
For example, following script (example.txt):
can be called from this batch file (“configuration file”):open sftp://%USERNAME%:%PASSWORD%@example.com ...
@echo off set USERNAME=martin set PASSWORD=mypassword winscp.com /script=example.txt