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

akshayjain

Re: Issue with 4.1.4 Renaming Files Containing ":" with "%#A

martin wrote:

akshayjain wrote:

Is there any C# function which creates the file with modified name in the local directory if it contains characters(/\:*?\"<>|) which are not supported by windows filename?

Is this WinSCP question?


When we use the WinSCP utility to download files which contain unsupported characters, it replaces the characters. Is there any C# equivalent for this where we are using WinSCP to pull files?
martin

Re: Issue with 4.1.4 Renaming Files Containing ":" with "%#A

akshayjain wrote:

Is there any C# function which creates the file with modified name in the local directory if it contains characters(/\:*?\"<>|) which are not supported by windows filename?

Is this WinSCP question?
akshayjain

Re: Issue with 4.1.4 Renaming Files Containing ":" with "%#A

Is there any C# function which creates the file with modified name in the local directory if it contains characters(/\:*?\"<>|) which are not supported by windows filename?
martin

Re: Issue with 4.1.4 Renaming Files Containing ":" with "%#A

That's because Windows do not allow colon in filenames. Please read documentation.
Hooligan

Issue with 4.1.4 Renaming Files Containing ":" with "%#A"

Hi,

When I copy a file from a remote host to my local PC using WinSCP 4.1.4 (SFTP Protocol) and that file contains a colon (:) character, WinSCP changes the destination filename on the PC such that the colons are replaced with "%3A". For example, copying a file named "test:1:2:3" from the remote host will result in a file on the PC named "test%3A1%3A2%3A3".

- Joe