2
Answers

access denied error

deepak sindhwani

deepak sindhwani

11y
1.9k
1
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.
Answers (2)