October 15th, 2007

Why aren't shortcuts as easy as unix links?

Commenter dingo asks, “Why are shortcuts so hard to manipulate? Why can’t they be as easy as unix links?” Well, if you want something like unix links, then you can just create a hard link. Creating them is about the same difficulty (CreateHardLink vs link) and manipulating them is the same since you don’t actually manipulate a hard link. You just use it like a regular file (since a regular file is a hard link). If you want something like unix symbolic links, then you can create an NTFS junction, such as this one that mounts a drive into a directory. (I’m told that Windows Vista expands the repertoire of symbolic links as well.)

But neither of these features is available on FAT (or CD-ROMs or Novell Netware or email), which meant that Windows 95 couldn’t use them. Last year I discussed in some detail why shortcuts are files. Maybe that’s what your question is really about.

Topics
Code

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

0 comments

Discussion are closed.