|
-
May 28th, 2010, 08:04 AM
#11
Re: Loop through folders with shell object.
Thank you. 
I got a like of the shell32 objects meanwhile. They are rather flexible and shell32.shell is a fast executing thing with everything concerning folder and folderitems (also files).
Unfortunately I was not able to get CreateObject() produce any of the shell32 objects, so it seems late binding and use in VBScript is out of scope. Except I did something wrong.
Anyway I don't understand it fully:
I can use CreateObject("WScript.Shell") to get a scripting shell.
I get an FSO by using CreateObject("Scripting.FileSystemObject")
both objects are provided by "scrrun.dll"
I can make a Recordset with CreateObject("ADODB.Recordset") anytime. It is from an "msadoxx.dll".
I cannot, however CreateObject("Shell32.FolderItem"). The object is defined in "shell32.dll", but seems not to be registered under this name.
Maybe I only don't know the right name to precede, like ADODB for objects from the msado15.dll...
Making a reference to shell32.dll ('Microsoft Shell Controls and Automation), however, suffices all needs and gives you intellisense and F2 object browser to learn more about the provided objects.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|