Topic "Unable to download files with [] characters in the name"

Author Message
[View user's profile]

Joined: 2013-10-07
Posts: 1
I have written an automation script using Powershell and the WinSCP .Net Assembly and have identified a potential bug.

When using the
$session.GetFiles($remotePath, $localPath, $remove, $TransferOptions)

command and file which has the [ or ] or [] anywhere in the name (e.g. [abc]_xyz.doc) is not downloaded. Was wondering whether anyone has encountered?

I am using the latest beta version of the .Net Assembly
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26889
Location: Prague, Czechia
Please read documentation:

If that does not help, come back.
Martin Prikryl

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