|
-
April 3rd, 2001, 10:31 PM
#1
How can I know if a file or a directory exists or not?
How can I know if a file or a directory exists or not?
Thank you!
Best Regards,
Kevin Shen
Best Regards,
Kevin Shen
-
April 3rd, 2001, 10:42 PM
#2
Re: How can I know if a file or a directory exists or not?
refer
http://vblib.virtualave.net
there is a function call IsFileExist in vbFileIO class.
from there, you would probably find out how to crate your own function to check the directory existance.
hope this help.
-
April 4th, 2001, 02:34 AM
#3
Re: How can I know if a file or a directory exists or not?
An easiest way -provided you know what you are looking for- is the following:
if dir("myfile.exe")<>"" then... 'the file exists, or there is a directory with same name as file
if dir("mydir",vbdirectory)<>"" then... 'a directory exists
Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|