Here , I give code for Get Parent Directory Name
Use Parent.FullName Code.
string root = @"C:\Lakshmi\Naraayanan";
DirectoryInfo di = new DirectoryInfo(root);
MessageBox.Show(di.Parent.FullName);
Happy Coding!
h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->
No comments:
Post a Comment