I have a small installation app that I'm building. The user can specify
an install path at the command line. How can I ensure that something
they put in is valid?
What I'm NOT looking for is determining if a path exists. I can
accomplish that with Directory.Exists(). I want them to put in a path
that may not exist and I'll create it for them.
What I AM looking for is making sure that the string is in the right
format like C:\Program Files\blah\blah\blah, not VDNSKVNKLSVNKNSVLKFNV
I suppose I could use a regular expression with no problem, but I was
wondering if there was anything in System.IO that would tell me that.
Sometimes the greatest solutions come from the simplest logic.
Being told "No" is merely the incentive to do it anyway.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!