Page 1 of 1

Create a Windows Desktop Link from PHP

Posted: Fri Aug 12, 2005 6:35 am
by asterinex
Hello Everyone,

What I want to do is give my customers an opportunity to make a desktop icon that directly link to a website. De url has to contain the username and unixdate of creation.
So wenn someone starts his computer. He klicks on that icon . Internet explorer pops up and he is logged.

Is it possible to create dynamiccaly a desktop icon with php. Lets say wenn the user klicks a button.


Thanks in advance,

Gert

Posted: Fri Aug 12, 2005 6:46 am
by anjanesh
There is something known as window.external.AddDesktopComponent in Javascript which works only in IE+Windows and your Windows should have Active Desktop enabled.

AddDesktopComponent

The other option is to use ActiveX objects to create a desktop link.

Posted: Fri Aug 12, 2005 6:48 am
by feyd
yes. Unfortunately, current shortcuts are binary files. It's best to provide the user with the link information and let them create it. This also avoids people not wanting to download your created one because they can contain viruses/trojans/etc

Posted: Fri Aug 12, 2005 6:53 am
by anjanesh
asterinex - if you really want this done then goto many good porn sites - Im sure you'll get the answer.
But I think they too use ActiveX. Not sure if they could do this using Javascript.

Posted: Fri Aug 12, 2005 7:44 am
by feyd
now, maybe you're talking more about a .url file instead of a .lnk?

http://www.cyanwerks.com/file-format-url.html