Re: Sorting images based on dimensions into folders.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Actually, Windows 2000 and above according to:


I don't mean the GetDetailsOf method. That works
on 98.

I was speaking of the entire script, on reviewing the info at
the MSDN link you snipped, I saw that
FolderItems/FolderItem were not available to 98 and I use
those in the script.


Yes, that's odd. That MSDN page seems to be a mis-print.
On my unchanged version of Win98SE I have v 5.00 of
SHCDOC401.DLL (the source of Shell.App on 98) and
FolderItems, etc. are available. They're also listed in
my copy of MSDN, which dates to Win98 1st edition/IE4.

Your script is all valid on 98, and probably on any Active
Desktop system, except that I don't see the FolderItems.Filter
method in an object browser.

For example, I can run the following successfully,
but it only returns the first four items: name, size, type
and last-mod.-date:

Dim oFol, oFolItem, SH, s, i
Set SH = CreateObject("Shell.Application")
Set oFol = SH.NameSpace("C:\Windows")
Set oFolItem = oFol.ParseName("notepad.exe")
For i = 0 to 40
s = s & vbCrLf & oFol.GetDetailsOf(oFolItem, i)
Next

MsgBox s

--------------

So all systems can use some version of your method,
but each gets a different collection of properties with
GetDetailsOf. In my own searches today I found those
conflicting lists of 2000/XP properties that I posted earlier,
but I never came across any definitive list for all Windows
versions.
I would guess that WinME has more properties
than Win2000, since it's newer, but I don't know about that.
The page you linked didn't mention WinME at all.




.



Relevant Pages

  • Re: InternetExplorer.Application methods and properties reference
    ... MSDN is available on CD with MS ... IE pages if you want to keep a good, quick reference at hand. ... Drazen Petrek wrote in message ... > (so the script does not create its own InternetExplorer.Application ...
    (microsoft.public.scripting.vbscript)
  • Re: VBS
    ... I will look at the MSDN page and see what I can ... > Trying to compile that script in VBNet would in my opinion take more time ... > fileinof, directoryinfo classes. ... > Have a look at that fileinfo class ...
    (microsoft.public.dotnet.languages.vb)
  • Re: script to create a website in IIS
    ... There is an excellent article on MSDN that covers this topic: ... The directory perms are controlled by the AccessFlags property. ... How can I modify this script for that? ... objItem.CreateNewSite "Test Site", arrBindings, _ ...
    (microsoft.public.windows.server.scripting)
  • Re: Promised 2 day response? WEP Key assignment via script
    ... use the undocumented zwcsvc APIs ... Use of any included script samples are subject to the terms specified at ... > Did you post with the same email address as is associated with your MSDN ...
    (microsoft.public.win32.programmer.wmi)