Information générale
Catégorie:
Codage, syntaxe et commandes
>Hi,
>
>I know how to do this in VFP, but not too sure in VB - so, I'm hoping that someone will point me in the right direction. As an example. let's say that I want to check for the exisitence of apppath + '\Export' - and if the Export subfolder doesn't exist, then create it. What would be the best approach?
>
>TIA, Al
I don't know if this is the best but this is how I do it
Dim sDir as String
sDir = ATTACHMENTSDIR + rs("mydir") ' + "\"
If Dir$(sDir & "\nul") = "" Then
'On Error Resume Next
ChDrive ATTACHMENTSDRIVE: ChDir (ATTACHMENTSDIR): MkDir rs("myDir")
End If
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement