Aaron Saray

open source programmer,
web developer

entrepreneur, author
and musician

My Blog

contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!

How desktop.ini saved me from myself

When working at “the triangle” we used junction points on windows to link to repositories that we needed to run the code base – but weren’t necessary for the project. (see creating junction points on windows with linkd.exe.)

The problem I ran into was thinking I could delete my whole folder with all of the repositories after the project was done. Unfortunately, because they were junction points, they would also delete the source of the links.

Next, I decided that I should delete each folder individually. However, I kept forgetting which were junction points and which were real folders. Unfortunately, windows did not automatically distinguish real folders from junction points.

Finally, I found out about desktop.ini – and how I could use it to my advantage. I ended up creating a desktop.ini file inside of each of my real folders and changing the icons to something else. This way, I would know that they were real folders and not junction points. This worked great and kept me from deleting junction points ever again.

Microsoft is pretty close lipped on their msdn link above – so I found this to be a better resource: Peatsoft desktop.ini reference.

This entry was posted in windows and tagged . Bookmark the permalink.

One Response to How desktop.ini saved me from myself

  1. Dave Rowe says:

    Here’s what you need: http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html

    Makes creating junction points a point-click operation. Plus, it changes the icon to show a chain link to denote the directory as a junction point. But, if you have TorteiseSVN installed, you’ll see the SVN status icons instead. Around that, you can still right-click and select ‘Properties’ and view the junction properties (where it’s pointed to) on the directory.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>