RE: [PHP] EXEC() with RUNDLL32 and Kernal32.DLL ???
| From: | Matthew Loff | Date: | Mon, 15 Oct 2001 22:10:42 +0000 |
| Subject: | RE: [PHP] EXEC() with RUNDLL32 and Kernal32.DLL ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71146@lists.php.net to get a copy of this message | ||
Jason--
I can't figure out how to pass the parameters to GetFileVersion() via
rundll32.exe either...
However, GetFileVersion() is in user.exe, if it helps you along any...
--Matt
-----Original Message-----
From: Jason Caldwell [mailto:jason@thinkingman.org]
Sent: Monday, October 15, 2001 5:12 PM
To: php-general@lists.php.net
Subject: [PHP] EXEC() with RUNDLL32 and Kernal32.DLL ???
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@thinkingman.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net