Solved

checking file existence

Posted on 2004-09-24
2
184 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

786 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