Solved

checking file existence

Posted on 2004-09-24
2
186 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

730 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