Re: vbscript: how to generate a FolderItem2 object from a filename ?

"R.Wieser" <[email protected]>
Newsgroups alt.comp.os.windows-xp,alt.windows7.general
Organization A noiseless patient Spider
Message-ID <[email protected]>
JJ,

> "Folder"'s "GetDetailsOf" accepts "FolderItem". Not just "FolderItem2".

Good to know.  Alas, I have no idea how to create a "FolderItem" object from 
a full path either (actually, even less than a FolderItem2). -|

> Use "ParseName" method of the "Computer" folder. The folder which shows
> all of the drives. e.g.
[snip code]

Alas, the line

> set oFolder = oFile.GetFolder

returns a "(null): The system cannot find the file specified." error.

... which just might be a difference between Win7 and XP, the latter of 
which I'm using.

I did check if the oFile object retuned sane data and both the "file" as 
well as the "path" methods (properties?) returned th expected strings.

Thanks for the code though.  Its something of which you just know that all 
of that works together that way.  No, really ! :-) <whistle>

Regards,
Rudy Wieser
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.