Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want scan all files from pc and progressbar shows the output regarding progress file using background worker
Posted
Comments
OriginalGriff 28-Nov-15 5:02am    
And?
What have you tried?
Where are you stuck?
What help do you need?
Suvendu Shekhar Giri 28-Nov-15 5:05am    
Show us what have you tried so far?
Krunal Rohit 28-Nov-15 5:05am    
What have tried so far ?

-KR
BillWoodruff 28-Nov-15 6:28am    
"scan all files" does not sound right ! Try to revise your question so it is clearer what's going on. What is the role of Oracle in this question ?

1 solution

1) find out how to traverse a file tree in C#
- handle access violations gracefully
- add some filter if needed
- add some processor (do something with the files?) for each directory/file
2) find out how to show a progress bar
- initialization/main program?
- gracefully handling of uncertain total amount/time
- how to refresh...
- ...from another thread than the UI thread
- add a cancel machinery?
- how to handle termination
3) find out how to let a background worker do the items from 1) connected to 2)
- setting up a thread...
- ...as background worker
- handle exceptions and errors gracefully in the thread
- refresh the progress status
- react on cancel request
- signal termination (success and failures?)

So, there are some topics to cover on your side. We do not know what you do not know ;-)
Make up your mind and ask specific questions.
Regards
Andi
 
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