Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You're right, I misspoke. I have to revise my statements a bit.

On Windows, there are hard links, junction points (I believe they're the same, junction points are for directories), symbolic links, and shortcuts. Junction points only work for local NTFS drives. Shortcuts work on anything, pointing to anything, but they're just .lnk files and an app has to know how to process them.

Here's the kicker: you basically can't create a symbolic link in Windows unless you're running as Administrator! There's even an option to enable symlinking in the Local Security Policy, but it doesn't actually work (a known bug since, I believe, Win Vista)! The 'runas' command (basically, sudo) can't really be used, though perhaps it works if you create a 'real' Administrator account (by default, there isn't one that you can log into).

So, you can create a symbolic link to a file on a network file system, but not to a directory. And you'll have to run as Administrator to make it happen at all.

I'm sure that's more than you ever wanted to know about Windows and links. :-)



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: