Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

File/Directory path validation

$
0
0

Hi folks,

     I'm looking for a way to validate a string whether it is a valid file path and/or directory path.  The System.IO.Path class contains some helpful methods but not a solution.  I am not looking to find out if the file or directory exists or can be created. I want to know if it is a valid path expression.  Relative paths are also important to be distinguished.

    Is there such a method available?  I have looked and could not find a good solution yet.  Is there a solution in .NET 3.0?

Thanks in advance,

Remus


Viewing all articles
Browse latest Browse all 8156


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>