On 6/29/06 1:32 PM, "Craig Hoyt" <[EMAIL PROTECTED]> wrote:
> Is it possible to get the folderitem of a file when only the volume
> name and file name are known? This, assuming there is only one file
> with that name on the volume, of course. I'm looking at my options in
> the LR and don't see how to do this. I'm probably missing something
> obvious...
>
> Craig
Well, if you know the file will be in the root of the volume, you could loop
through the available volumes testing Volume(x).Name for the volume name
then construct the folderitem via Volume(x).Child("filename").
If you have no idea where the file will actually be on the volume, it seems
like you would have to perform a full volume search for the file, which as
you mentioned could cause issues if there happens to be another file with
the same name. I imagine it could also be a fairly time-consuming process on
large volumes.
-Seth
--
<http://www.realopen.org>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>