Upload My Experience and Learning
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!
Post a Comment
No comments:
Post a Comment