Hmm...
As Dennis says later, I too could not find a File.InvalidChars or
Path.InvalidFileChars method, so assumed that InvalidPathChars must do the
job. But, as you observe, it does not because \ and / are actually valid in
a path.
Notably, InvalidPathChars also does not include * or ?, and yet these are
not valid in a path. Perhaps that would have been a better example :-)
Charles
"Dragon" <no@spam.please> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Hi,
I do have another question though: why is InvalidPathChars incomplete
under Windows? For example, it does not contain \ or /.
Charles
Because "\" and "/" are valid path characters. 8=]
"C:\TEMP\"
Roman