i am creating program that checks if the path is valid or not
lilita 0
Newbie Poster
Recommended Answers
Jump to PostDepending on your needs, it could be as simple as:
if (Directory.Exists(path) || File.Exists(path)) { // Yuppers }
But it's somewhat hard to answer your question because it's a little vague. What exactly constitutes "valid", for example? What kind of paths are you supporting? Is this …
All 2 Replies
deceptikon 1,790
Code Sniper Team Colleague Featured Poster
ddanbe 2,724
Professional Procrastinator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.