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:Password@www.domain.com
-username
switch that does not need any encoding:
www.domain.com/email@address.com
open sftp://www.domain.com/email@address.com:Password@www.domain.com
set /P USERNAME="www.domain.com/email@address.com"
%USERNAME%
for the open
script:
open sftp://%USERNAME%:Password@www.domain.com
WinSCP.exe /console /script=script.txt
option batch on
option confirm off
set /P USERNAME="www.domain.com/email@address.com"
open sftp://%USERNAME%:Password@www.domain.com
option transfer binary
put test2.txt /
exit