Sub DirectoryExists(ByVal DirectoryPath As String)
If My.Computer.FileSystem.DirectoryExists(DirectoryPath) = False Then MsgBox("Le répertoire n'existe pas")
End Sub
'Exemple d'utilisation:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
DirectoryExists("C:\")
End Sub