12 kinds of shortcuts for Windows

Source: Internet
Author: User

Shortcuts, many people's reflection is that little arrow, in fact, Windows supports 9 kinds of shortcuts.

About this format

1. *.lnk
This is Microsoft's general shortcut, many computer beginners that year is to put a 500MB game on the desktop 1k size shortcut copy to the floppy disk, and then go home double-click to open a look, found that Windows prompt "cannot find the path" and so on. Later I realized it was just a shortcut.

Open a LNK file on the command line: Rundll32.exe Url.dll, Fileprotocolhandler%l

LNK binary format http://www.vckbase.com/document/viewdoc/?id=1411

In fact. The LNK root Windows shell is closely related, and in Windows Vista, many shell objects can be opened with an. lnk file, so the LNK file is all guided with a CLSID

Operating the. lnk file in Wsh/vbs script56.chm::/html/wsconmanagingshortcuts.htm
 
2. *.url

The format of the. url file is similar to the. inf:
Http://www.cyanwerks.com/file-format-url.html

3. *.pif

It's quite an old format.
Http://www.smsoft.ru/en/pifdoc.htm

4. Foldershortcut

This is an undisclosed shortcut, do not understand the shortcut to the folder, I remember from Win98 began to use this stuff, seemingly with the Active Desktop technology appears together. Domestic first public is in this post http://bbs.onegreen.net/TopicOther.asp?t=5&BoardID=2&id=1414, the simplest folder shortcut is to drag and drop a folder to the Start menu

For example: The above is a direct drag-and-Drop generated folder shortcut, below is the traditional LNK shortcut. The obvious difference between the two is that a folder shortcut can display the contents of the target folder in the menu.


What's more, the folder shortcuts don't have small arrows!

Folder Shortcut Properties It's kind of weird.

Ways to manually Create folder shortcuts:
1. Create a system-hidden attribute in the target folder Desktop.ini (cmd attrib +s +h desktop.ini), the content is:
[. ShellClassInfo]
CLSID2={0AFACED1-E828-11D1-9187-B532F1E9575D}
flags=2
2. Save, create a general shortcut to your destination address, named: Target.lnk (must be this!). )。
3. Set this folder as a read-only property

It seems that folder shortcuts can only point to folders and URLs and cannot point to files. In fact, folder shortcuts used in the Hecke offensive area is quite cool, especially the combination of. lnk. URL of some overflow, almost never miss! (Who would have thought that opening a folder would also be a virus?) )

5. Hardlink

A major feature of NTFS. Under XP can be established via fsutil (requires Administrator privileges).

C:\windows\system32>fsutil Hardlink Create
Usage: fsutil hardlink Create < new file name > < existing file name >
Example: fsutil hardlink Create C:\foo.txt c:\bar.txt

What's the use of Hardlink? You can put a file in a lot of directories, but only one file space, a bit like those N-1 CD principle. So hardlink can be used to deceive, for example, I put my 2GB ghost image file Hardkink 1000 times, then I see the properties of all these files is a 2TB, hehe, in fact, my hard drive is not so big. Hardlink can be used to solve many problems. For example, many DLLs in the system are duplicated, we can make a DLL into a lot of hardlink, which can save space greatly. It is important to note that Hardlink only works with NTFS partitions, a file can only be Hardlink 1024ci, and can only be established on the same partition.

6. Junction Point

Compared to Hardlink,junction point can be regarded as the hard connection of the folder, Vista Junction has been replaced by a complete symbolic connection.

7. Reparse point

It's a bit similar to Hardlink, but for folders or fsutil commands to manage

C:\windows\system32>fsutil Reparsepoint
----Supported Reparsepoint commands----

Query for a re-analysis point
Delete Remove a re-analysis point

But if you want to build it, you can create it by Sysinternals another piece of work Http://www.sysinternals.com/files/junction.zip

8. Symbolic Links

Symbolic connections allow you to create a pointer (pointer) that points from one location in the directory to a file that is actually located elsewhere. NTFS does not really implement symbolic connections similar to those in Unix systems, but this functionality is simulated by reparse points. In fact, a symbolic connection is a reparse point that redirects access to one file to another.

9. Mount Point

Can be managed by the mountvol command. Strictly speaking, this is not a shortcut, but you can attach a storage media to an NTFS folder.

Shell Object

In fact, the Fonts folder is a typical Shell object. Download Shellextview, Shellobjecteditor.

One. Shell Command

Common with

Displays the desktop. CSF, content:
[Shell]
command=2
iconfile=explorer.exe,3
[Taskbar]
Command=toggledesktop

Changing the file will call the Explorer to display the desktop

View channels. SCF

[Shell]
Command=3
iconfile=shdocvw.dll,-118

[IE]
Command=channels

Explorer.scf

[Shell]
command=2
iconfile=explorer.exe,1

[Taskbar]
Command=explorer

I always thought. The. desktop files in the SCF root gnome are very similar, huh?

Subst.

Subst is a command under CMD that can virtual a path (local/unc) as a drive letter, for example:
Subst k:d:\temp
Subst L: \\192.168.1.1\C$
Since Nt/2k/xp/2003/vista is a Unicode-based OS, you can even use a Chinese character as a drive letter, for example:
Subst PLATE: D:\Temp
Do not believe can see the solution diagram:

Also, the Chinese drive symbol is not displayed in resource management.
For example, a special character other than A-Z can also be used as a disk character, which may be a vulnerability to DefineDosDevice (), for example:
Subst ': C:\Windows
Subst?: C:\Windows, etc.

There is also a special shortcut for dragging and dropping objects when copying files, which are 0-byte files and are called by DDE. For example:
My Documents. MyDocs
Zip compressed folder. zfsendtotarget
Desktop. Desklink
Mail. Mapmail

The shortcuts that Windows supports are basically these, shortcuts show a file in different locations at a very small cost, which brings a lot of convenience to the use of the system, and also brings many unknown security risks. If you have time, next time, "Shortcut attack and Battle"

12 kinds of shortcuts for Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.