I too was looking for this capability and haven't seen it elsewhere. I've added it to my Windows libraries for Python. Unfortunately, if you aren't already an avid Python programmer, you have a few steps to get everything installed.
- Download Python 2.6.4 and install it.
- Download distribute-setup (part of distribute) or ez_setup (part of setuptools) and run the script. This installs one of the two package managers for Python that my package requires to run.
- Use easy_install to install the jaraco.windows package and its dependencies. From the command-prompt:
x
\Python26\scripts\easy_install jaraco.windows
After following these steps, you should have a script called \python26\scripts\find-symlinks.exe or \python26\scripts\find-symlinks-script.py which you can execute with an optional pathname to search out symlinks. It will search out the symlinks and report the results, one line each. I tested this procedure on a clean install of Windows 7.
> cmd /c mklink /d mylink \windows
symbolic link created for mylink <<===>> \windows
> cmd /c mklink myfilelink \windows\notepad.exe
symbolic link created for myfilelink <<===>> \windows\notepad.exe
> \python26\scripts\find-symlinks
D .\mylink --> \windows
.\myfilelink --> \windows\notepad.exe