Discovering Parent Directories May 06 2004
Ever wonder how to find the parent directory in VB.NET without messing with the path string?
=== BEGIN ===
Public Shared Function GetParentDirectory(ByVal strFileSystemPath As String) As String
Dim di As New System.IO.DirectoryInfo(strFileSystemPath)
Dim strParentDirectory = di.Parent.FullName.ToString & “”
Return (strParentDirectory)
End Function
=== END ===
- Posted in : .NET
- Author : site admin

Comments»
no comments yet - be the first?