创建桌面快捷方式使用网页 [英] Creating a Desktop Shortcut Using a Web Page

查看:235
本文介绍了创建桌面快捷方式使用网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创造的东西在网页上,让我的用户创建桌面快捷方式。因为我的用户并不精通技术,我想避免让他们尝试拖放。有没有我可以在网页上创建一个按钮(或者使用JavaScript或.Net),其自动创建桌面快捷方式,为用户的方式?

I am trying to create something on a webpage that allows my users to create a desktop shortcut. Because my users are NOT technically savvy, I would like to avoid having them try to drag and drop. Is there a way that I could create a button on a webpage (either using JavaScript or .Net) that automatically creates a desktop shortcut for the user?

如果您有跟进问题,请让我知道。谢谢

If you have follow up questions, please let me know. Thanks

推荐答案

简单的方法:用的是什么浏览器提供

在Firefox中,拖&放;删除一个链接到桌面会在Windows 7的快捷方式我敢肯定,所有或大多数主流浏览器可以在大多数平台上做到这一点。只需将用户在正确的方向,可能是通过定制为他们提供一步一步的指示。

In Firefox, dragging & dropping a link to the desktop creates a shortcut in Windows 7. I'm sure all or most major browsers can do this on most platforms. Just point your users to the right direction, maybe by offering them custom step-by-step instructions.

您可以风格的链接作为一个巨大的领域易于识别,拖放。没有必要为它只是一个带下划线的文本片段。

You can style the link as a huge area easy to recognize, drag and drop. No need for it to be just an underlined piece of text.

这是,在我看来,唯一有价值的路要走。

This is, in my opinion, the only worthwhile way to go.

硬办法:自己编程它

我不认为创建一个桌面链接可以使用JavaScript来完成 - 将有阻塞到位太多的安全限制。

I don't think creating a desktop link can be done using JavaScript - there will be too many security restrictions in place blocking it.

对于Windows,我认为最接近将生成的快捷方式在服务器端的.lnk 文件,并提供这些下载。这不是微不足道的,虽然,其结构不受Microsoft记载。有非官方的指南是这样的:<一href="http://docs.google.com/viewer?a=v&q=cache%3aKaRpguI5jMoJ%3awww.i2s-lab.com/Papers/The_Windows_Shortcut_File_Format.pdf+Windows+link+format&hl=en&gl=de&pid=bl&srcid=ADGEESjEstRfzgz-OyjM6JXNVdadotIbAYKgQEcvEq530d-nxnRVuoCfr6LK0oVMV53cHKG_cWUHzdWLk4ahQGGR740VVLYUHzARBNL189T39lP0-a8FhOWkalyJR2kEMXwvC6DO-Dgu&sig=AHIEtbTh85Ak9vbpvK365rP8IGwSkivd8Q"相对=nofollow>的Windows快捷方式文件格式

For Windows, I think the closest thing would be generating shortcut .lnk files on server side, and offering those for download. It's not trivial though, and its structure is not documented by Microsoft. There are unofficial guides like this: The Windows Shortcut File Format

您可能能够解决您的本地系统上创建它们,并为他们提供下载生成的文件。你必须尝试一下 - 如果你使用绝对网址它可能工作。不要忘记,以测试各种系统上:95,98,XP,Vista中,7 ....

You may be able to get around generating the files by creating them on your local system, and offering them for download. It may work if you use absolute web addresses - you'd have to try out. Don't forget to test on the various systems: 95, 98, XP, Vista, 7 ....

我敢肯定有在Mac OS和各种Linux桌面相当于快捷的格式,但我不知道他们。

I'm sure there are equivalent shortcut formats on Mac OS and the various Linux Desktops, but I don't know them.

这篇关于创建桌面快捷方式使用网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆