Read The Windows Registry in Two Lines of PHP
This came to me via. tek-tips. Here is how to use PHP to find the path to Firefox.
$shell = new COM("WScript.Shell") or die("Requires Windows Scripting Host");
$devenvpath=$shell->RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App\\Pathsfirefox.exe");
Happy automation.
1 Comment
Jump to comment form | comment rss [?] | trackback uri [?]