DirectoryInfo.FullName : DirectoryInfo « System.IO « VB.Net by API






DirectoryInfo.FullName

  


Imports System.IO

Module Module1

    Sub Main()
        Dim Current As String
        Dim Parent As DirectoryInfo

        Try
            Current = Directory.GetCurrentDirectory()
            Parent = Directory.GetParent(Current)

            Console.WriteLine("Current directory {0}", Current)
            Console.WriteLine("Parent directory {0}", Parent.FullName)
        Catch E As Exception
            Console.WriteLine("Error determining parent directory")
            Console.WriteLine(E.Message)
        End Try
    End Sub

End Module

   
    
  








Related examples in the same category

1.New DirectoryInfo
2.DirectoryInfo.CreationTime
3.DirectoryInfo.GetDirectories()
4.DirectoryInfo.GetDirectories(String filter)
5.DirectoryInfo.GetFiles
6.DirectoryInfo.LastAccessTime
7.DirectoryInfo.LastWriteTime
8.DirectoryInfo.Root