Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ensure a file exists
Message
From
15/10/2001 14:08:31
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, United States
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00568676
Message ID:
00568682
Views:
15
>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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform