TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dc
NA
663
0
C# check directory path exists
Feb 20 2013 12:22 PM
In a C# 2008 application, I have a check to make certain the directory file does not exist. if it does not exist, then I want to display an error message.
Here is the code I have so far:
string strFullpath = '"C:\\Data\\IFiles"
if (!Directory.Exists(strFullpath))
{
display error message
}
else
{
}
The code is not correct somehow. The directory file does exist. Thus can you tell me how to change this code to really check if the directory file does exist?
Reply
Answers (
1
)
Must Declare Scalar variable "@photo"
Acess database in windows application