Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

zzahierarba

Thanks for the reply!

Really appreciate it
zzahierarba

WinSCP password includes alias character

Hi,

I have a question, refer to the code snippet below which runs on python,

process = subprocess.Popen(
    [r'path\WinSCP.com', '/ini=nul', '/command',
     'open ftp://user:password@host', 'get something.txt', 'exit'],
    stdout=subprocess.PIPE, stderr=subprocess.PIPE)
for line in iter(process.stdout.readline, b'')
    print(line.decode().rstrip())

Can I know if it will work if the password has alias character inside? for example: banana@72

Let's say if it doesn't work, how should I approach for this kind of password?

I tried to include the password as mentioned but seems like it failed to connect and proceed to timeout.

Hope to get some help here.