System.IO.Path, contains the InvalidPathChars property you can use within a
regular
expression to see if a Path is invaid, or you can call IndexOfAny on the path
and pass
in InvalidPathChars I believe.
Additionally, you can use the security system to ensure the user doesn't do
anything funny
by locking them down to specific directories or locations that they can write to
(this ensures
they can't write paths that recurse, etc...). You can view my blog entry on
this at:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.