Re: How to get a file's title

Tech-Archive recommends: Fix windows errors by optimizing your registry





While you made valid points, I got a laugh out of that
last statement....

Shell.Application is not designed
for dealing with the file system. It's designed as a
tool for Explorer to use in displaying folder content.

Exactly what else would be in a folder, other than files???


What I meant was that Shell is not designed for file
system functionality, in contrast to the API functions,
FSO, etc. It's a very specific and limited set of functions
(originally part of Active Desktop and requiring Active
Desktop) designed specifically to give Explorer a wrapper
that provides what it needs to display files, operate a
context menu within a folder, show a thumbnail for a
selected file, etc. "The ShellFolderView object represents
the objects in a view." (Shell then became popularized in
scripting because it was accessible, but it's really folder-
view-specific. It was originally designed as an ActiveX
control, embedded in the folder.htt webpage, which
provided scriptable access to the folder ListView for
script in folder.htt. It still serves the same role in XP --
WebView has been removed but the object model was
continued for compatibility.)

In other words, Shell is mainly dealing with the *display*
functionality of the ListView (via the object
ShellFolderView/WebViewFolderContents)
rather than with file system functionality per se. It's not
dependable as a way to actually know what files are in
a folder, as I detailed in the earlier post.



.



Relevant Pages

  • Re: FileSystemObject versus Application (in the world series of love)*
    ... I would never use it in cases where FSO can be used. ... The reason for that is that FSO deals with the file system ... of various functionality set up to deal with Web View folder ... shows in a folder window. ...
    (microsoft.public.scripting.vbscript)
  • Re: detect Win 7
    ... Another would be "Program Files ". ... This latter folder will exist in the root of the same drive as the Windows folder. ... There are real file system folders, NTFS hard links to file system folders and mapped folders. ...
    (microsoft.public.vb.general.discussion)
  • Re: detect Win 7
    ... Another would be "Program Files ". ... This latter folder will exist in the root of the same drive as the Windows folder. ... There are real file system folders, NTFS hard links to file system folders and mapped folders. ...
    (microsoft.public.vb.general.discussion)
  • Re: Working With Files Above Sites Root Directory
    ... The fact that it is outside your web app is important. ... directories and file system directories. ... So, in order to upload files, you're going to have to hard-code the full ... > working with folders that are above the site's root folder. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Where Have My e-Mail Contacts Gone?
    ... "Russ Valentine" wrote: ... It tells the address book view which folder to display as its default. ... When I type in ROBBIE in the search box all Robbies ...
    (microsoft.public.outlook.contacts)