Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to Find a File?

0 views
Skip to first unread message

OLEType

unread,
Dec 22, 1997, 3:00:00 AM12/22/97
to

I am working on a project and would like to know if a certain file exists on
the users computer. Unknown is the directory the file resides in. I would like
to be able to do a system search for the file, like Find File or Folder, and
return the path, if the file exists.

If anyone can please send a snippet or source to accomplish this, it would be
greatly appreciated. Most definetly, please post in NG for everyone.

Thanks in advance,
O

OLE...@aol.com

Jeff Fox

unread,
Dec 22, 1997, 3:00:00 AM12/22/97
to

This is a crummy way to do it, but it *should* work, and may fuel a
more creative idea.
Shell to DOS and do a 'dir /s', pipe the output to a file. Parse the
file to find out if the target file is on the system.
Remember that the shell command runs async...

Good Luck!

John L. Turner

unread,
Dec 22, 1997, 3:00:00 AM12/22/97
to jf...@airmail.net, jf...@chemicallime.com

How about the common dialog ActiveX control.
--
John L. Turner
JCI Inc.
2425 Poca River Road {Lanham}
Poca, WV 25159 voice (304) 776-3675
~~Just because you do not know the answer, does not mean that someone
else does~~

0 new messages