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
deepak sindhwani
NA
11
0
access denied error
Nov 27 2012 12:25 PM
I want to get the total count of tmp files in c drive. it shows error. Below mentioned is the code which I have use.
fileCount = Directory.GetFiles(@"C:\\", "*.tmp", SearchOption.AllDirectories).Length;
when I run this it shows access denied error.
c:\system volume information is access denied.
please resolve the same.
Reply
Answers (
2
)
get count of temp files in C Drive and ignore system files which is not accessible.
C# Microsoft.Office.Interop