Welcome!

Python Authors: Pat Romanski, AppDynamics Blog, Matt Davis, Donald Meyer, Liz McMillan

Blog Feed Post

Symlink Functionality on Windows (NTFS) With Junction Points

Junction Points in NTFS 3.0+ allow you to make one or more links to a folder that acts like the folder itself.

As I must use Microsoft Windows at work, I have greatly missed the joys of a UNIX platform. Until I started my present job, I was able to have a Linux or Solaris computer as my main computer for work, (and home!).

Since I joined an enormous corporate environment, I must comply with the corporate standards. Surprising to some of you, I can be compliant. Stop laughing! It just means I need to sanity hack[1] at home.

One feature that was dear to me on UNIX was the symlink, (symbolic link). Similar to windows shortcut, but virtually indistinguishable from an actual file or directory. You can still tell it is a link, but you can copy, rename and change directory (cd) into as if it was a normal directory. In reality, a symlink is a pointer to another file or directory. When you access the symlink, the computer knows to look at the actual location it points to. Read the wikipedia entry for more info.

I use a symlink to the current Groovy directory on my Mac. It looks like the following on MacOSX.
jmac:~ jalex$ls -ld /opt/groovy*
lrwxr-xr-x 1 root wheel 12 Jun 21 19:08 /opt/[email protected] -> groovy-1.5.6
drwxr-xr-x 9 root wheel 306 Feb 1 2008 /opt/groovy-1.5.4/
drwxr-xr-x 9 root wheel 306 Apr 25 16:00 /opt/groovy-1.5.6/
jmac:~ jalex$ cd /opt/groovy
jmac:/opt/groovy jalex$ pwd
/opt/groovy
jmac:/opt/groovy jalex$ ls
ASM-LICENSE.txt NOTICE.txt conf/ lib/
LICENSE.txt bin/ embeddable/
Junction Points!
This week, I found out that Microsoft indeed has similar functionality to the symlink, which Microsoft calls a junction. Here is a knowledgebase note from Microsoft on how to use it. You can actually mount shared drives to a junction point, but you should read the Microsoft Help and Support link above if you are crazy like that.

Two basic commands to deal with junction points:
  • linkd - You can create the junction point.
linkd \mydesktop %user profile%\desktop
  • delrp - to delete the junction point. The folder it points to remains intact.
delrp \mydesktop
Now you may treat \mydesktop as any other directory, (unless you want to delete it).
dir \mydesktop
cd \mydesktop
copy \temp\file.txt \mydesktop
Try it out.

Tangents
I abandoned Linux, after 11 years, for my main home computer and bought a Mac, which hides a BSD-based UNIX environment behind the pretty interface. I am an Apple fanboy now, with a little part of me still attached to Linux. I never really had windows as my primary home environment, because I depend on things it does not have. I used a text-based email client, elm or mutt, until only a couple of years ago when I experienced gmail (Google Mail).

If the cost is not outside of your budget, consider a Mac. Especially if you automate tasks with scripts or batch files. The Macs are more than just fashionable. They are more simple, reliable and flexible than windows. But if you have to use windows, there is VMWare and VirtualBox to help you install a nice copy of Xubuntu on it for the Linux fun you really want. MacOS X doesn't easily run on non-Apple hardware.

References:
Junction, UNIX, Xubuntu, VMWare, Mac, Solaris, Microsoft Windows, Google Mail,

[1] Sanity Hacking: to work on technology-related side-projects just to stay sane. I couldn't find an online reference, but Jared Richardson talked about it in his 2008 NoFluffJustStuff keynote titled "Career 2.0". I have a blog entry on this.

Read the original blog entry...

More Stories By Jason Alexander

Unix Administrator for seven years. Software Developer for four years. Java, Groovy, Scala and more. Fan of the Pragmatic Bookshelf and continuous improvement.

IoT & Smart Cities Stories
Moroccanoil®, the global leader in oil-infused beauty, is thrilled to announce the NEW Moroccanoil Color Depositing Masks, a collection of dual-benefit hair masks that deposit pure pigments while providing the treatment benefits of a deep conditioning mask. The collection consists of seven curated shades for commitment-free, beautifully-colored hair that looks and feels healthy.
The textured-hair category is inarguably the hottest in the haircare space today. This has been driven by the proliferation of founder brands started by curly and coily consumers and savvy consumers who increasingly want products specifically for their texture type. This trend is underscored by the latest insights from NaturallyCurly's 2018 TextureTrends report, released today. According to the 2018 TextureTrends Report, more than 80 percent of women with curly and coily hair say they purcha...
The textured-hair category is inarguably the hottest in the haircare space today. This has been driven by the proliferation of founder brands started by curly and coily consumers and savvy consumers who increasingly want products specifically for their texture type. This trend is underscored by the latest insights from NaturallyCurly's 2018 TextureTrends report, released today. According to the 2018 TextureTrends Report, more than 80 percent of women with curly and coily hair say they purcha...
We all love the many benefits of natural plant oils, used as a deap treatment before shampooing, at home or at the beach, but is there an all-in-one solution for everyday intensive nutrition and modern styling?I am passionate about the benefits of natural extracts with tried-and-tested results, which I have used to develop my own brand (lemon for its acid ph, wheat germ for its fortifying action…). I wanted a product which combined caring and styling effects, and which could be used after shampo...
The platform combines the strengths of Singtel's extensive, intelligent network capabilities with Microsoft's cloud expertise to create a unique solution that sets new standards for IoT applications," said Mr Diomedes Kastanis, Head of IoT at Singtel. "Our solution provides speed, transparency and flexibility, paving the way for a more pervasive use of IoT to accelerate enterprises' digitalisation efforts. AI-powered intelligent connectivity over Microsoft Azure will be the fastest connected pat...
There are many examples of disruption in consumer space – Uber disrupting the cab industry, Airbnb disrupting the hospitality industry and so on; but have you wondered who is disrupting support and operations? AISERA helps make businesses and customers successful by offering consumer-like user experience for support and operations. We have built the world’s first AI-driven IT / HR / Cloud / Customer Support and Operations solution.
Codete accelerates their clients growth through technological expertise and experience. Codite team works with organizations to meet the challenges that digitalization presents. Their clients include digital start-ups as well as established enterprises in the IT industry. To stay competitive in a highly innovative IT industry, strong R&D departments and bold spin-off initiatives is a must. Codete Data Science and Software Architects teams help corporate clients to stay up to date with the mod...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...
Druva is the global leader in Cloud Data Protection and Management, delivering the industry's first data management-as-a-service solution that aggregates data from endpoints, servers and cloud applications and leverages the public cloud to offer a single pane of glass to enable data protection, governance and intelligence-dramatically increasing the availability and visibility of business critical information, while reducing the risk, cost and complexity of managing and protecting it. Druva's...
BMC has unmatched experience in IT management, supporting 92 of the Forbes Global 100, and earning recognition as an ITSM Gartner Magic Quadrant Leader for five years running. Our solutions offer speed, agility, and efficiency to tackle business challenges in the areas of service management, automation, operations, and the mainframe.