DLL & COM & ActiveX: WMI / Win32_FileSpecification

  • babbalouie / 104 / Sat, 30 Jan 2010 11:38:00 GMT / Comments (0)
  • This doesn't work:


    Set EachType = GetObject("WinMgmts:")
    Set CompSys = EachType.ExecQuery("select version, name from win32_filespecification where name = '" & sPath & "'")

    This does work:

    Set EachType = GetObject("WinMgmts:").InstancesOf("Win32_FileSpecification")

    For Each Directo In EachType
    List1.AddItem "Name: " & Directo.Name
    List1.AddItem "Caption: " & Directo.Caption
    List1.AddItem "File ID: " & Directo.fileid
    Next

    But it only enumerates file for one directory, and I cant figure out how to get it to display infomation for a specific file in a specific directory.

    Anyone out there used this before??
  • Keywords:

    wmi, win32_filespecification, dll, com, activex

  • http://programming.itags.org/com-activex/174559/«« Last Thread - Next Thread »»
  • DLL & COM & ActiveX Questions

    • Winsock Library?

      Hi,I'm learning to work with sockets. I have an exeample that work (the executable and dll) But...

      By svatasoiu, 2 Comments

    • where to start com programming

      hai guysI very much a new for com programming and i know little bit vb 6, i would like to start com ...

      By satheeshkumar, 3 Comments

    • VB6 Components

      HiDo you guys know where i can find what different component(the list of which i can bring up by hit...

      By vb_student, 1 Comments

    • WinSock efficiency

      This is the scenario, I have a Server WinSock accepting many Client WinSock, if you know what I mean...

      By manofprayer, 1 Comments

    • Why cannot unload ActiveEXE program in process?

      ActivexEXE is assistant program.My main program quote that.but main program unloaded,and disappear i...

      By raylynn, 1 Comments