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