Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

MichelleMcKinney

Thank you sir, I will try it and if I face any issue, I will update you here or will start my own thread.
martin

Re: The specified wildcard character pattern is not valid

Those cmdlets are from 3rd party PowerShell module. And there's no such error message in WinSCP itself.

Anyway, to escape the [ in an file mask in WinSCP itself, use [[].
See https://winscp.net/eng/docs/file_mask#basic
badchar

Escape

Escape did not help: \[
badchar

The specified wildcard character pattern is not valid

If there is [ character in the filename, the following error is generated for Receive-WinSCPItem, Send-WinSCPItem commands under Windows:
The specified wildcard character pattern is not valid: file[name.txt

Under Windows, the [ character is legal in the filename.
No problem with the other regex characters: ,+^$(){}]