Thank you so much prikryl – URL-encoding the slash and
Nick
@ symbol worked like a treat. Greatly appreciated! :D
Nick
@ symbol worked like a treat. Greatly appreciated! :D
set command should be in a wrapping batch file, not in WinSCP script.
open sftp://www.domain.com%2Femail%40address.com:[email protected]
-username switch that does not need any encoding:
www.domain.com/[email protected]
open sftp://www.domain.com/[email protected]:[email protected]
set /P USERNAME="www.domain.com/[email protected]"
%USERNAME% for the open script:
open sftp://%USERNAME%:[email protected]
WinSCP.exe /console /script=script.txt
option batch on
option confirm off
set /P USERNAME="www.domain.com/[email protected]"
open sftp://%USERNAME%:[email protected]
option transfer binary
put test2.txt /
exit