Dim logDirectoryProperties As System.IO.DirectoryInfo
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If My.Computer.FileSystem.DirectoryExists(TextBox1.Text) Then
MsgBox("有效路徑")
Else
MsgBox("無效路徑")
End If
End Sub
沒有留言:
張貼留言