Home All Groups Group Topic Archive Search About
Author
26 Nov 2007 7:07 PM
Alastair MacFarlane
Dear All,

Is it possible to read File information like Author, Subject, Keywords in
the File Summary Tab in explorer. I have seen a couple of VB.NET examples
and one that uses a file dsofile.dll (I haven't heard of this file)?

Thanks again for the help of the group.

Alastair MacFarlane

Author
26 Nov 2007 11:10 PM
MikeD
"Alastair MacFarlane" <anonym***@microsoft.com> wrote in message
news:ejWmm%23FMIHA.4456@TK2MSFTNGP03.phx.gbl...
> Dear All,
>
> Is it possible to read File information like Author, Subject, Keywords in
> the File Summary Tab in explorer. I have seen a couple of VB.NET examples
> and one that uses a file dsofile.dll (I haven't heard of this file)?
>


I believe Randy Birch has an example of how to do this on his web site, but
I'm not positive.

http://vbnet.mvps.org/

If you can't find it there, try googling the newsgroups because I KNOW this
has been asked and answered before.

--
Mike
Microsoft MVP Visual Basic
Author
26 Nov 2007 11:20 PM
Randy Birch
Not I - perhaps on Eduardo's site as one of his I-interface methods -
http://www.mvps.org/emorcillo/en/index.shtml

--


Randy Birch
http://vbnet.mvps.org/

Please respond to the newsgroups so all can benefit.


"MikeD" <nob***@nowhere.edu> wrote in message
news:upDFUGIMIHA.820@TK2MSFTNGP06.phx.gbl...

"Alastair MacFarlane" <anonym***@microsoft.com> wrote in message
news:ejWmm%23FMIHA.4456@TK2MSFTNGP03.phx.gbl...
> Dear All,
>
> Is it possible to read File information like Author, Subject, Keywords in
> the File Summary Tab in explorer. I have seen a couple of VB.NET examples
> and one that uses a file dsofile.dll (I haven't heard of this file)?
>


I believe Randy Birch has an example of how to do this on his web site, but
I'm not positive.

http://vbnet.mvps.org/

If you can't find it there, try googling the newsgroups because I KNOW this
has been asked and answered before.

--
Mike
Microsoft MVP Visual Basic
Author
26 Nov 2007 11:27 PM
MikeD
Yeah, after posting, I searched your site a bit and saw examples for showing
file property pages (using ShellExecute), but not actually getting the
extended property values that Alastair wants. But I still think what
Alastair is asking has been asked and answered before, so googling would
still be a good idea (for that matter, when isn't it?).

--
Mike
Microsoft MVP Visual Basic



Show quote
"Randy Birch" <rgb_removet***@mvps.org> wrote in message
news:ed0NhLIMIHA.3400@TK2MSFTNGP03.phx.gbl...
> Not I - perhaps on Eduardo's site as one of his I-interface methods -
> http://www.mvps.org/emorcillo/en/index.shtml
>
> --
>
>
> Randy Birch
> http://vbnet.mvps.org/
>
> Please respond to the newsgroups so all can benefit.
>
>
> "MikeD" <nob***@nowhere.edu> wrote in message
> news:upDFUGIMIHA.820@TK2MSFTNGP06.phx.gbl...
>
> "Alastair MacFarlane" <anonym***@microsoft.com> wrote in message
> news:ejWmm%23FMIHA.4456@TK2MSFTNGP03.phx.gbl...
>> Dear All,
>>
>> Is it possible to read File information like Author, Subject, Keywords in
>> the File Summary Tab in explorer. I have seen a couple of VB.NET examples
>> and one that uses a file dsofile.dll (I haven't heard of this file)?
>>
>
>
> I believe Randy Birch has an example of how to do this on his web site,
> but
> I'm not positive.
>
> http://vbnet.mvps.org/
>
> If you can't find it there, try googling the newsgroups because I KNOW
> this
> has been asked and answered before.
>
> --
> Mike
> Microsoft MVP Visual Basic
>
>
Author
26 Nov 2007 11:49 PM
Randy Birch
I only find googling about 60-70% effective. There's too much crap out there
to be 100% relevant, plus google's insistence on populating the first couple
of pages with cnet, ebay, eopinions and other commercial links increases the
pain. I have a distinct 10 minute limit on finding what I want, regardless
of what I want. After that, I trash the idea.

--


Randy Birch
http://vbnet.mvps.org/

Please respond to the newsgroups so all can benefit.


"MikeD" <nob***@nowhere.edu> wrote in message
news:OO2HePIMIHA.2140@TK2MSFTNGP03.phx.gbl...
Yeah, after posting, I searched your site a bit and saw examples for showing
file property pages (using ShellExecute), but not actually getting the
extended property values that Alastair wants. But I still think what
Alastair is asking has been asked and answered before, so googling would
still be a good idea (for that matter, when isn't it?).

--
Mike
Microsoft MVP Visual Basic



Show quote
"Randy Birch" <rgb_removet***@mvps.org> wrote in message
news:ed0NhLIMIHA.3400@TK2MSFTNGP03.phx.gbl...
> Not I - perhaps on Eduardo's site as one of his I-interface methods -
> http://www.mvps.org/emorcillo/en/index.shtml
>
> --
>
>
> Randy Birch
> http://vbnet.mvps.org/
>
> Please respond to the newsgroups so all can benefit.
>
>
> "MikeD" <nob***@nowhere.edu> wrote in message
> news:upDFUGIMIHA.820@TK2MSFTNGP06.phx.gbl...
>
> "Alastair MacFarlane" <anonym***@microsoft.com> wrote in message
> news:ejWmm%23FMIHA.4456@TK2MSFTNGP03.phx.gbl...
>> Dear All,
>>
>> Is it possible to read File information like Author, Subject, Keywords in
>> the File Summary Tab in explorer. I have seen a couple of VB.NET examples
>> and one that uses a file dsofile.dll (I haven't heard of this file)?
>>
>
>
> I believe Randy Birch has an example of how to do this on his web site,
> but
> I'm not positive.
>
> http://vbnet.mvps.org/
>
> If you can't find it there, try googling the newsgroups because I KNOW
> this
> has been asked and answered before.
>
> --
> Mike
> Microsoft MVP Visual Basic
>
>
Author
27 Nov 2007 3:39 AM
Kevin Provance
I believe we determined this could be done by reading a file Stream.

Google "file streams", there was a whole huge thread on it here some weeks
back.

- Kev

Show quote
"Alastair MacFarlane" <anonym***@microsoft.com> wrote in message
news:ejWmm%23FMIHA.4456@TK2MSFTNGP03.phx.gbl...
| Dear All,
|
| Is it possible to read File information like Author, Subject, Keywords in
| the File Summary Tab in explorer. I have seen a couple of VB.NET examples
| and one that uses a file dsofile.dll (I haven't heard of this file)?
|
| Thanks again for the help of the group.
|
| Alastair MacFarlane
|
|
Author
27 Nov 2007 2:19 PM
Jeff Johnson
"Kevin Provance" <ca***@tpasoft.com> wrote in message
news:u8xjJdKMIHA.3976@TK2MSFTNGP03.phx.gbl...

> | Is it possible to read File information like Author, Subject, Keywords
> in
> | the File Summary Tab in explorer. I have seen a couple of VB.NET
> examples
> | and one that uses a file dsofile.dll (I haven't heard of this file)?

>I believe we determined this could be done by reading a file Stream.

Depends on the file type. Office documents, no. Other types, yes.
Author
27 Nov 2007 1:23 PM
Larry Serflaten
"Alastair MacFarlane" <anonym***@microsoft.com> wrote
> Is it possible to read File information like Author, Subject, Keywords in
> the File Summary Tab in explorer. I have seen a couple of VB.NET examples
> and one that uses a file dsofile.dll (I haven't heard of this file)?

See if this will get you started....

LFS


Private Sub Command1_Click()

Dim arrHeaders(0 To 34), objShell, objFolder, i, strFileName, value

Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace("D:\Temp\zip")

For i = 0 To 34
    arrHeaders(i) = objFolder.GetDetailsOf(objFolder.Items, i)
Next

For Each strFileName In objFolder.Items
    Debug.Print
    For i = 0 To 34
        value = objFolder.GetDetailsOf(strFileName, i)
        If Len(value) > 0 Then
          Debug.Print i, arrHeaders(i); ":"; value
        End If
    Next
Next

End Sub
Author
27 Nov 2007 10:04 PM
Karl E. Peterson
Alastair MacFarlane wrote:
> Is it possible to read File information like Author, Subject, Keywords in
> the File Summary Tab in explorer. I have seen a couple of VB.NET examples
> and one that uses a file dsofile.dll (I haven't heard of this file)?

If Office files, try this:
  http://www.google.com/search?q=dsofile+site%3Aword.mvps.org

If otherwise, try Larry's suggestion.
--
..NET: It's About Trust!
http://vfred.mvps.org

AddThis Social Bookmark Button