[PHP] EXEC() with RUNDLL32 and Kernal32.DLL ??? From: Jason Caldwell (jason <email protected>)
Date: 10/15/01

I would like to get the file version of (say) and .EXE or .DLL -- I know
this can be done with the rundll.exe command line util standard on
Windows -- I think there is a GetFileVersionEx() API call in the
Kernal32.dll --

However, I'm not sure how to call this API function. I'm using Win2K and
not sure if the "kernal32.dll" is even part of this OS.

<?
    $cmdline = "c:\rundll32 kernal32.dll,GetFileVersion()
C:\Progs\myfunction.dll";

    exec($cmdline, $result);

    print($result[0]);
?>

My problem is actually with the rundll command line and properly using it to
get the version number from a DLL or EXE.

Thanks.
Jason Caldwell
jason <email protected>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>