Topic "Automation fails with files with [ character in the name (5.7.7 and 5.9.6 tested)"

Author Message
[View user's profile]

Joined: 2016-05-24
Posts: 4
We are transferring files with [ character in the name with WinSCP automation, but keep getting errors about file handles not released and this error:
Details "WinSCP.SessionRemoteException: Mask is invalid near 'c - Copy [7 ).apa'.

Can you try to transfer files with these names?
a - Malmö test [1].txt
b - Göteborg test [2].txt
c - Umeå test [3].txt

Would it be possible to fix this so [ files can be transferred successfully? Also å character seems to have changed to cross character in some logs. It does the transfer though as long as there is no [ character in the name, soNot sure if encoding issue also?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Please read documentation:

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License