Problem with summary file informations
| From: | Enrico | Date: | Mon, 02 Dec 2002 16:19:07 +0000 |
| Subject: | Problem with summary file informations | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17237@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to extract some summary file informations with IIS.
I've used a COM object, the Shell.Application, with the method GetDetailsOf.
Under asp the script is ok but with php the values of the informations are
null (empty).
The code is this, i want to print some summary information on the text.txt
file (i've insert some summary values on the properties file system, like
Author, Copyright, etc...):
$filesummary = new COM("Shell.Application") or die("COM Shell Application
Problem.");
$folder= $filesummary->Namespace (0);
$fileinfo= $folder->ParseName("C:\\test.txt");
for ($i=0; $i<33; $i++) {
print $i.") ".$folder->GetDetailsOf("",$i).":
".$folder->GetDetailsOf($fileinfo,$i)."<br>";
}
When i run this script only the first seven values is full, all the others
are null.
Regards
Enrico Zimuel