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
Kevin Davis
NA
52
50.8k
Getting Main directory Name
Jan 20 2012 11:31 AM
HI all.
I have several folders that have folders inside of them. I'm trying to get just the top level folder name, such as,
I have:
D:\Music\Rock\Scorpions
D:\Music\Rock\Scorpions\World Wide Live
I just want to return "Music" for both lines. I know how to get a list of all the directories for a certain drive, but when I scan directories for all files, I just want to return the top level directory name.
Thanks for your help!
Zcast
Reply
Answers (
1
)
How to add Button to dataGridView control
How to work with bindingNavigator control