How can i detect if a path is valid.
-
I Am Checking with System.IO.Directory.Exsist(), however it will return false either if path doesn't exsist or syntax is incorrect. How can i detect if syntax is correct
-
I Am Checking with System.IO.Directory.Exsist(), however it will return false either if path doesn't exsist or syntax is incorrect. How can i detect if syntax is correct
-
I Am Checking with System.IO.Directory.Exsist(), however it will return false either if path doesn't exsist or syntax is incorrect. How can i detect if syntax is correct
Hi, I haven't tried this yet, however I expect
new DirectoryInfo(path)
would throw an exception when it doesn't like your path. :)Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
Hi, I haven't tried this yet, however I expect
new DirectoryInfo(path)
would throw an exception when it doesn't like your path. :)Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
thanks, at least some provblems are solved.