Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ensure a file exists
Message
De
15/10/2001 14:08:31
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, États-Unis
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00568676
Message ID:
00568682
Vues:
17
>How do i check to be sure a file exists before I open it?
>
>I see the GetAttr() function, but I get an error of the file is
>not there.
>
>Thanks

Use the fileSystemObject to check for file exist - such as -

dim fs.filesystemobject
set fs = new filesystemobject

if fs.FileExist(\\myfile) then
do something
else
do something else
endif
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°`°º¤ø¤º°¤º°
Carl Evans
CEO & President
System Answers Consulting, Inc.
MCSD .NET, ASP.NET, C#.NET, VB.NET,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform