getting file info using COM

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Wasilewski

    getting file info using COM

    I am trying to get file information using COM but I do not get all of the
    info using the code below.

    $shell = new COM("Shell.Appl ication") or die("COM Shell Application
    Problem.");
    $myfolder= $shell->Namespace(0) ;
    $fileinfo= $myfolder->ParseName("C:\ \test.wma");
    for ($i=0; $i<33; $i++) {
    echo $i.") ".$myfolder->GetDetailsOf(" ",$i).":
    ".$myfolder->GetDetailsOf($ fileinfo,$i)."< br>";
    }

    I found this snippet in the newsgroups but it only returns the first 7
    fields of info.
    I also read that IShellFolder2 has superceded GetDetailsOf but have not
    found any references on how to use this in PHP.

    I am trying to extract the info for wma files to get data similar to ID_3
    tags in mp3 files.

    I would appreciate it if someone could make an alternate suggestion on how
    to do this or offer some info on how to get it working using COM.

    Thanks!

    Mike




Working...