Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Friends,

Well Friends, I working on a Project called "Computer Scanner" And till now i m done with the scanning code for a Particular Folders and Directories and now i wants to implement some code which will help me to scan entire Hard Drives, like C drives along with the following Folders.

Plz Guys Help me....

thanks in Andvance. :)
Posted
Updated 24-Nov-12 1:47am
v2
Comments
Richard MacCutchan 24-Nov-12 4:50am    
Do you mean scan all directories starting at the root (e.g. C:\), or scanning at the hardware level?
Nikhil@123 24-Nov-12 7:19am    
Yes you are Right Sir!
Richard MacCutchan 24-Nov-12 8:15am    
What do you mean I am right? I asked you which type of scanning you want to do.
Nikhil@123 24-Nov-12 9:26am    
Sir,

Sir i am working on a project called "Computer Scanner", so now i have implemented code for scanning a particular files or folders in drives. And now i
I wants my application to Scan the entire C:// and if it finds file or folders inside C:// it should scan that files and folders as well.
this is what i wants to implement in my application.
Plz help Sir!

There is a Class Called SearchOption.AllDirectories();
 
Share this answer
 
You should start from root directory (e.g. C:\) and then proceed recursively.
Directory Class[^] provides methods for enumerating files and sub-directories.
 
Share this answer
 

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