TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Emre Ozpalamutcu
NA
39
0
How to display files in a multiple directory?
Mar 7 2012 9:12 AM
I'm making a mini disk cleaner and I have wrote this code:
listView1.Items.Clear();
DirectoryInfo dirCustom = new DirectoryInfo("C:\\Windows\\");
FileInfo[] filCustom;
filCustom = dirCustom.GetFiles("*.txt");
foreach (FileInfo filFile in filCustom)
{
listView1.Items.Add(filFile.Name, "test");
}
However there are some missing parts, works fine but i need to search multiple path and extensions and it only displays the file name on the list view on detailed view. I want it to display the folder path and file size.
Reply
Answers (
2
)
To write dynamic connection string(c#2008,SQL SERVER 2005)
What are the dangers of try...catch when Catch loop is empty?