Click here to Skip to main content
14,691,424 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi I want to select a folder contains lots of file and count all files and files path store in ms access database.

and all text files contain a path just like:- F:\Projects\abcdef0001.bdf many times and also contain other word so i want to count .bdf in one files and also other files and save in ms access database.

Please help me i'm new.......

"Windows form 2010 c#"
Posted
Comments
[no name] 2-Oct-14 16:14pm
   
Well then DirectoryInfo and FileInfo classes would be of interest to you.
Ram jha 2-Oct-14 16:35pm
   
Hi will you write code or any more help?
Please.........
[no name] 2-Oct-14 17:16pm
   
Well this is not a write code to order drive through window. You are the one that wants this program, why don't you try it first and see if you can do it yourself? What sort of specific help do you need? We can't teach you programming in a forum posting, you have to do some of this yourself and designing your entire program for you is too much.
Ram jha 2-Oct-14 17:27pm
   
Thanks
I've done both works File path and search word in a file but now i've a new problem, i want to openfiledailog select multiple files after then save all file path and all searched word store in database
Sinisa Hajnal 3-Oct-14 2:26am
   
And your problem is?
Ram jha 3-Oct-14 4:19am
   
Hi My problem is:- I have open file dialog and select multiple files and read one by one files and search word "this word 'abc'" and count word after then store in ms access table.
Sinisa Hajnal 3-Oct-14 4:34am
   
OK, you described what you have. You opened the filedialog, selected files, read them and searched them. Finally you saved the result of the search into the database.

What in all of this is your problem? At which point(s) something doesn't work? What error do you get? What have you tried?
Ram jha 3-Oct-14 11:37am
   
I don't know code, how is it. please help me
j snooze 3-Oct-14 17:31pm
   
try googling. There is a file dialog control you can drag and drop assuming you are using winforms. It handles selecting multiple files, I believe it puts the file names in a string array. If you've done coding for the previous question, this shouldn't be any more difficult.
Ram jha 6-Oct-14 4:01am
   
Hi all
I have done this program..........

Thanks for guidance....

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

  Print Answers RSS
Top Experts
Last 24hrsThis month



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