How desktop.ini saved me from myself

October 7th, 2008 by Aaron

Get MS hosting starting at less than $2 month + free domains.Click Here Now to Save.

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.

Tags:


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

©2008 102 Degrees LLC - All Rights Reserved Home Services Products Network Blog Open Source Learning Contact