Home All Groups Group Topic Archive Search About

Newbie: Find if a file exists

Author
16 Oct 2005 5:05 PM
smith
Hi,

the solutions on the net are not very satisfactory after my search. Maybe i
missed something.

Is there a surefire way to determine wether a file exists or not ?
Any links would be appreciated!

(actually what would be really nice would be to "remember" the name AND size
of the file in order to determine if the user opens the same file, even if
the file's path has changed. But thats a bit too much)

TIA
-steve

Author
16 Oct 2005 5:40 PM
Duane Bozarth
smith wrote:
>
> Hi,
>
> the solutions on the net are not very satisfactory after my search. Maybe i
> missed something.

What's not satisfactory w/ what methods that you have used?
Author
16 Oct 2005 5:49 PM
Jim Carlock
Try typing the following into google.com...

FileExists site:vbnet.mvps.org

1) It shows a great site to search for things (ie, vbnet.mvps.org).
2) It shows how to search a specific site using google.com.
3) The first link google displays, answers your question, I hope.
4) The same method could be used to find a FolderExists also.

Hope this helps.

--
Jim Carlock
Post replies to the newsgroup, thanks.

"smith" <jsm***@yahoo.ca> wrote:
Hi,

the solutions on the net are not very satisfactory after my search. Maybe i
missed something.

Is there a surefire way to determine wether a file exists or not ?
Any links would be appreciated!

(actually what would be really nice would be to "remember" the name AND size
of the file in order to determine if the user opens the same file, even if
the file's path has changed. But thats a bit too much)

TIA
-steve
Author
16 Oct 2005 6:16 PM
smith
Excellent site !!!

Thank u so much!
-steve
Show quoteHide quote
"Jim Carlock" <anonymous@localhost> wrote in message
news:O5e6Fon0FHA.1564@tk2msftngp13.phx.gbl...
> Try typing the following into google.com...
>
> FileExists site:vbnet.mvps.org
>
> 1) It shows a great site to search for things (ie, vbnet.mvps.org).
> 2) It shows how to search a specific site using google.com.
> 3) The first link google displays, answers your question, I hope.
> 4) The same method could be used to find a FolderExists also.
>
> Hope this helps.
>
> --
> Jim Carlock
> Post replies to the newsgroup, thanks.
>
> "smith" <jsm***@yahoo.ca> wrote:
> Hi,
>
> the solutions on the net are not very satisfactory after my search. Maybe
> i
> missed something.
>
> Is there a surefire way to determine wether a file exists or not ?
> Any links would be appreciated!
>
> (actually what would be really nice would be to "remember" the name AND
> size
> of the file in order to determine if the user opens the same file, even if
> the file's path has changed. But thats a bit too much)
>
> TIA
> -steve
>
>
>
Author
16 Oct 2005 6:56 PM
Mike D Sutton
> the solutions on the net are not very satisfactory after my search. Maybe i missed something.
>
> Is there a surefire way to determine wether a file exists or not ?
> Any links would be appreciated!
>
> (actually what would be really nice would be to "remember" the name AND size of the file in order to determine if the user opens
> the same file, even if the file's path has changed. But thats a bit too much)

Here's the method I use:
http://groups.google.co.uk/group/microsoft.public.vb.general.discussion/msg/6f64da5e5e517b42
Hope this helps,

    Mike


- Microsoft Visual Basic MVP -
E-Mail: ED***@mvps.org
WWW: Http://EDais.mvps.org/