| Author: Ramesh N D 28 Aug 2009 | Member Level: Gold Points : 0 |
your code throws Exception... Plz check
|
| Author: ABitSmart 28 Aug 2009 | Member Level: Diamond Points : 1 |
I test my code before posting it. Can you please illustrate what you are doing when the exception is thrown ?
|
| Author: Ramesh N D 28 Aug 2009 | Member Level: Gold Points : 1 |
Error in this line :
string fileNames = Directory.GetFiles(directoryName , fileExt , SearchOption.AllDirectories);
Exeception : Access to the path 'C:\System Volume Information' is denied.
|
| Author: ABitSmart 28 Aug 2009 | Member Level: Diamond Points : 1 |
I am sorry to say, this does not have any thing to do with my code. Either you do not have access to view the folder or the folder does not exist.
|
| Author: Ramesh N D 29 Aug 2009 | Member Level: Gold Points : 0 |
i am the admin for my system.... shall i know which rights i has to have?..
|
| Author: ABitSmart 29 Aug 2009 | Member Level: Diamond Points : 1 |
From the error it looks like you do not have ACCESS to the folder you are trying to access. Try using a temp folder instead of a system folder and see if it works. As I said, this exception has nothing to do with my code.
|