iconizing desktop shortcut (.url files)
hi all,
i have a web application (written in PHP) which sends an email with a hyperlink to download a customised desktop shortcut to clients desktop.
when the client follow the link, it downloads and saves the shortcut and it works fine. but the desktop shortcut appears in 'Internet Explorer' icon. now i want to replace this default 'IE' icon with some other icon.
i tried following code and still no luck.. could somebody which may have some previous experience on this kind of case shed some light on me.
<snip>
if (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'windows')) {
header("Content-Disposition: attachment; filename=\"Short_Cut.url\"");
echo "[InternetShortcut]\r\n" .
"URL=http://192.168.1.71/\r\n" .
"IDList=" .
"IconFile=http://192.168.1.71/favicon.ico\r\n" .
"IconIndex=1\r\n" .
"[{000214A0-0000-0000-C000-000000000046}]\r\n" .
"Prop3=19,2\r\n";
}
</snip>
i googled a lot, but it seems this 'receipe' of '.URL' file is something top secret with microsoft! Smile
thanks
~viraj
|