Home All Groups Group Topic Archive Search About

Illegal characters in path

Author
15 Feb 2006 2:46 PM
al jones
As a learning exercise in VS 2005 - BASIC, I'm working on a program which
may be run on any of the (hopefully) later versions of Windows - assume 98
- XP.

Is there a quick / dirty way to determine which is the invalid character in
the path / folder name?  Given that, I can arbitrarily (arbitrary
programmers, right!) replace it with a valid character (space or underscore
or ...)

Author
15 Feb 2006 2:50 PM
Herfried K. Wagner [MVP]
"al jones" <alfredmjo***@shotmail.com> schrieb:
> Is there a quick / dirty way to determine which is the invalid character
> in
> the path / folder name?  Given that, I can arbitrarily (arbitrary
> programmers, right!) replace it with a valid character (space or
> underscore
> or ...)

Incomplete:  'System.IO.Path.InvalidPathChars'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>