ahmad Level: Master Registered: 03-02-2003 Posts: 120
File Existance Checking
Hi there
Can some one tell me how in VB can we find the existance of a file in any folder
e.g
finding the existance of C:windowstempxr.mdb
what we have to do in our program is like this that when program starts it checks this file in temp folder if it finds this file over there it stops otherwise continues.
Regards
Ahmad
[Edited by admin on 18-02-2003 at 11:10 AM GMT]
____________________________
@#@#@
18-02-2003 at 05:31 AM
|
JLRodgers Level: Moderator Registered: 04-04-2002 Posts: 1616
Re: File Existance Checking
Easiest thing is this:
If Dir("pathfilename.ext")="" Then
' File Doesn't Exist
End if
[Edited by admin on 18-02-2003 at 11:11 AM GMT]
____________________________ Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
18-02-2003 at 07:02 AM
|
win_dir Level: VB Guru Registered: 04-08-2002 Posts: 390
Re: File Existance Checking
er...JL, shouldn't this post be in the general forum?