Solved

checking file existence

Posted on 2004-09-24
2
182 Views
Last Modified: 2010-05-02
XD i asked the same que. in ASP but i need them both so sombody can tell me how i check some file existence?
0
Comment
Question by:blabliblo
  • 2
2 Comments
 
LVL 8

Accepted Solution

by:
mladenovicz earned 125 total points
ID: 12141494
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.fileexists("C:\temp\zeljko.jpg") Then
    'FILE EXISTS
End If
0
 
LVL 8

Expert Comment

by:mladenovicz
ID: 12141501
Dim fso

Set fso = CreateObject("Scripting.FileSystemObject")

If fso.fileExists(YourFileName) Then
    ' file exists
Else
    ' file does not exist
End If

Set fso = Nothing
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now