Posted by Janwillem Borleffs on 10/30/05 15:15
Marius III wrote:
> No, I need to get the FileVersion.
> For example an EXE files version can be: 2.0.0.260 and a newer
> version of this EXE can be 2.0.0.269.
>
Since you are mentioning EXE files, I assume that you need this for a
Windows environment.
Here, you can use the COM extension (http://www.php.net/com) as follows:
<?php
//create FSO instance
$fso = new COM("Scripting.FileSystemObject")
or die("Could not create Scripting.FileSystemObject");
$version = $fso->GetFileVersion(realpath('some.exe'));
print $version;
?>
JW
Navigation:
[Reply to this message]
|