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:yannick private (nna@hotmail.com)
Date:Apr 20, 2004 6:31:17 am
List:org.openoffice.fr.prog

quel est le code de la fonction dir? j'ai type incompatible comme erreur... n'est-elle pas propre aux macros? comme convertToUrl?

Yannick

From: Laurent Godard <list@wanadoo.fr>

Reply-To: pr@fr.openoffice.org To: pr@fr.openoffice.org Subject: Re: [prog] VBscript: contenu d'un repertoire Date: Tue, 20 Apr 2004 14:56:00 +0200

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