|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Read File InformationDear 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 "Alastair MacFarlane" <anonym***@microsoft.com> wrote in message I believe Randy Birch has an example of how to do this on his web site, but 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'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 Not I - perhaps on Eduardo's site as one of his I-interface methods -
http://www.mvps.org/emorcillo/en/index.shtml "MikeD" <nob***@nowhere.edu> wrote in message I believe Randy Birch has an example of how to do this on his web site, butnews: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'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 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?). -- Show quoteMike Microsoft MVP Visual Basic "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 > > 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. "MikeD" <nob***@nowhere.edu> wrote in message Yeah, after posting, I searched your site a bit and saw examples for showingnews:OO2HePIMIHA.2140@TK2MSFTNGP03.phx.gbl... 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?). -- Show quoteMike Microsoft MVP Visual Basic "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 > > 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 | | "Kevin Provance" <ca***@tpasoft.com> wrote in message Depends on the file type. Office documents, no. Other types, yes.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. "Alastair MacFarlane" <anonym***@microsoft.com> wrote See if this will get you started....> 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)? 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 Alastair MacFarlane wrote:
> Is it possible to read File information like Author, Subject, Keywords in If Office files, try this:> 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)? http://www.google.com/search?q=dsofile+site%3Aword.mvps.org If otherwise, try Larry's suggestion. |
|||||||||||||||||||||||