Solved

Add shortcut to desktop code

Posted on 2006-07-13
4
389 Views
Last Modified: 2008-02-01
hi

i am look for code that will place a desktop shortcut to a webpage.

i would like to offer our customers a link that they can click on which will then add a desktop shortcut to their pcs to our home page with a customized icon.

can anyone help?

thanks
0
Comment
Question by:naifyboy123
  • 2
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
0h4crying0utloud earned 500 total points
ID: 17102459


I'm pretty sure that cannot be done for security reasons (if you could do that, you could also do a lot of other bad things).  

But  one alternative solution would be to make an img link that looks just like a desktop shortcut on your page and ask them to drag the shortcut icon to their desktop. This would create a similar looking icon right on their desktop and that requires no fancy coding.

0
 

Author Comment

by:naifyboy123
ID: 17102672
i was thinking of the same kind of functionality as an "add to favorites" link.

i already have one of these as wanted to add the desktop shorthcut option as well.
0
 
LVL 10

Expert Comment

by:0h4crying0utloud
ID: 17102881

that's right but there's a big difference between adding to favorites and adding to the desktop.  

to add to the desktop you really have to create file on end user's c drive and that's a big no no.

Unlike the favorites, there is no convenient javascript method to do this.


0
 

Author Comment

by:naifyboy123
ID: 17103133
ok - thanks - i'll leave this Q open for a while and see what comes in - thanks again
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now