8 messages in org.openoffice.fr.progRe: [prog] VBscript: contenu d'un rep...
FromSent OnAttachments
yannick privateApr 20, 2004 5:51 am 
Laurent GodardApr 20, 2004 5:55 am 
yannick privateApr 20, 2004 6:31 am 
Laurent GodardApr 20, 2004 6:36 am 
yannick privateApr 20, 2004 6:49 am 
Laurent GodardApr 20, 2004 7:03 am 
yannick privateApr 20, 2004 7:30 am 
yannick privateApr 20, 2004 8:14 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] VBscript: contenu d'un repertoireActions...
From:Laurent Godard (list@wanadoo.fr)
Date:Apr 20, 2004 5:55:38 am
List:org.openoffice.fr.prog

Bonjour Yannick

comment fait-on pour tester si le contenu d'un repertoire est vide?

est-ce un truc du genre:

If ( Dir("C:\Sortie\") <> empty ) Then ... ??

j'aurais tendance a dire : si le dire ne reoturne que "." ou ".."

donc un truc du genre (a tester)

fichier=dir("c:\Sortie\*.*) vide=true while fichier<>"" and vide=true if fichier<>"." and fichier<>".." then vide=false endif fichier=dir() wend

Vide=true : le rep est vide vide=false : le rep contient au moins un fichier

Laurent