SyntaxFix
Write A Post
Hire A Developer
Questions
To get a 'grandparent' directory, call Directory.GetParent() twice:
var gparent = Directory.GetParent(Directory.GetParent(str_directory).ToString());