且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建桌面快捷方式/图标链接到我的网站

更新时间:2023-01-31 12:53:43

看看里面的.URL文件最简单的方法,就是里面的记事本打开它。的Internet快捷方式的内容(以最简单的形式),看起来是这样的:

The easiest way to look inside an .URL file, is to open it inside Notepad. The content (in its simplest form) of an Internet Shortcut could look like this:

[InternetShortcut]
URL=http://example.org/page.html

正如你所看到的,.URL文件有一个INI文件格式。重新$ P $的URL psents页面的地址位置加载。它必须指定一个完全限定的URL与格式协议://服务器/页。 对于其他可能的领域,我建议你看一看非官方指南的网址文件格式。

As you can see, .URL files have an INI file format. The URL represents the address location of the page to load. It must specify a fully qualifying URL with the format protocol://server/page. For other possible fields, I suggest you to take a look at "An Unofficial Guide to the URL File Format".

要添加图标,使用这样的事情(在你的.url文件):

To add icon use something like this (within your .url file):

IconIndex=0
IconFile=C:\Windows\System32\Shell32.dll

下面SHELL32.DLL是包含图标的资源文件。

Here shell32.dll is file containing icons as resources.