Hi

Could you tell me how to get InvalidFilenameCharacter in C# like
Path.InvalidPathChars.



Thanks.

Re: How to detect filename is invalid. by John

John
Fri May 07 17:12:03 CDT 2004

"XingZheng" <xingzheng23@netscape.net> wrote in message
news:OUNEsvANEHA.2064@TK2MSFTNGP12.phx.gbl...
> Hi
>
> Could you tell me how to get InvalidFilenameCharacter in C# like
> Path.InvalidPathChars.

You might do better to simply try to create the file, then catch any
exceptions which may be raised. That will cover problems with invalid file
name characters or anything else.
--
John Saunders
John.Saunders at SurfControl.com




Re: How to detect filename is invalid. by Poolbeer

Poolbeer
Fri May 07 18:24:22 CDT 2004

You could use Regular Expressions to look for invalid characters.

Greets.

"XingZheng" <xingzheng23@netscape.net> wrote in message
news:OUNEsvANEHA.2064@TK2MSFTNGP12.phx.gbl...
> Hi
>
> Could you tell me how to get InvalidFilenameCharacter in C# like
> Path.InvalidPathChars.
>
>
>
> Thanks.
>
>



Re: How to detect filename is invalid. by John

John
Fri May 07 19:01:39 CDT 2004

"Poolbeer (MCP)" <poolbeer @ NoSpam oxylogic . net> wrote in message
news:epHNM1INEHA.3988@TK2MSFTNGP09.phx.gbl...
> You could use Regular Expressions to look for invalid characters.

That will fail as soon as the definition of "invalid" changes.
--
John Saunders
John.Saunders at SurfControl.com