"Göran Andersson" <gu***@guffa.comschrieb:
Use the array of invalid characters from the Path class:
If fileName.IndexOfAny(System.IO.Path.GetInvalidPathC hars()) <-1 Then
ACK, but note that this won't guarantee the validity of the filename because
'GetInvalidPathChars' doens't necessarily return all invalid path characters
and even a path that doesn't contain any of these characters still may not
be valid.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>