Click here to Skip to main content
15,887,436 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey again

Jhonny has supplied me with a get file method that seems to work because first it stopped when trying to access the C:\documents and settings but after I had fixed that it now stops at the trash bin because access is denied. How might I skip the trash bin from my search subfolders?

Hope I asked the question correctly......:)

Actualy as I go on and fix one after the other it seems that I need to somehow set the program to be able to have access to the entire file system. How do I do this....?

I have set the security one click to full trust program and besides that I'm lost.
Posted
Updated 18-Oct-10 2:05am
v3

1 solution

Handle the error in a Try/Catch block?

The Recycle Bin is not what it appears to be. Open a command prompt and type
CD \$Recycyle.Bin
DIR /A

Now open Start -> Run and type C:\$Recycle.Bin and compare what you see.

Explorer lists files in the location whereas the command prompt show you what is really there, directories.

The Recycle Bin is an extension to Explorer that shows you information in a format that goes beyond the simple file/folder relationship. What it shows you is interpreted from the data that's in the $Recycle.Bin folder.
 
Share this answer
 
Comments
Dale 2012 19-Oct-10 17:02pm    
nice thank you..... Reciently I have been informed about Filepermissions.io are you familer with it at all and if so will you please help me in creating it for my project?
Dave Kreskowiak 19-Oct-10 18:21pm    
Yes, I'm familiar with FilePermissions. No, they won't get you into those folders. You cannot give yourself (and therefore any code you launch) more permissions than you already have.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900