Imports System.IO
Public Class Tester
Public Shared Sub Main
Dim myDirectoryInfo As DirectoryInfo
myDirectoryInfo = New DirectoryInfo("c:\\Java_dev")
Console.WriteLine(myDirectoryInfo.Exists)
Console.WriteLine(myDirectoryInfo.Name)
Console.WriteLine(myDirectoryInfo.Parent.ToString)
Console.WriteLine(myDirectoryInfo.Root.ToString)
End Sub
End Class
|