I want to get all the pdf files from my MyComputer Folder. I have written the code which is getting all of my drives successfully but there is an exception occuring and none of file is accessible. Here is the exception message. Please help me for this.
"Access to the path 'C:\$RECYCLE.BIN\S-1-5-18' is denied."
My requirement is to get all the pdf files and their paths from My Computer folder.