DOSSIER

cs_cmora Messages postés 34 Date d'inscription jeudi 7 avril 2005 Statut Membre Dernière intervention 10 juin 2005 - 6 juin 2005 à 10:06
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 - 6 juin 2005 à 10:21
Hello!! juste une petite question :
Comment savoir si un dossier existe deja?
je connais l'opération pour savoir si un ficheir existe (pathfileexist) et je voulais savoir si il existait la même chose pour les repertoires?
merci davance


cedric

2 réponses

BasicInstinct Messages postés 1470 Date d'inscription mardi 5 février 2002 Statut Membre Dernière intervention 20 octobre 2014 12
6 juin 2005 à 10:19
'lut

Declare Function PathIsDirectory Lib "shlwapi.dll" Alias "PathIsDirectoryA" (ByVal pszPath As String) As Long

++

BasicInstinct
0
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
6 juin 2005 à 10:21
Reponse sera à True si Dossier existe ou a False si dossier n'existe pas.



Reponse = Dir$(Dossier, vbDirectory) <> ""

Daniel
0
Rejoignez-nous