since Windows Vista there is an new Win32-API call CreateSymbolicLink to create a symbolic link on the NTFS filesystem.
Does anyone know if there is an way to list all existing symbolic links on the filesystem?
since Windows Vista there is an new Win32-API call CreateSymbolicLink to create a symbolic link on the NTFS filesystem.
Does anyone know if there is an way to list all existing symbolic links on the filesystem?
Following the links in that article takes you to this one. Quoting:
To determine if a specified directory is a mounted folder, first call the GetFileAttributes function and inspect the FILE_ATTRIBUTE_REPARSE_POINT flag in the return value to see if the directory has an associated reparse point. If it does, use the FindFirstFile and FindNextFile functions to obtain the reparse tag in the dwReserved0 member of the WIN32_FIND_DATA structure. To determine if the reparse point is a mounted folder (and not some other form of reparse point), test whether the tag value equals the value IO_REPARSE_TAG_MOUNT_POINT. For more information, see Reparse Points.
Window-key -> cmd -> dir /AL /S c:\
Copy-paste from comment on -> http://windows7themes.net/how-to-find-all-symbolic-links-junction-points-in-windows-7.html
You can of course put any other drive label instead of c:\
dir
hangs in an infinite loop if you have recursive reparse points (a stupid thing to have as it trips up most software dealing with directory trees, but the AppData folder of my standard W7 installation has them by default). Nfts_Links_View as recommended by Tristan doesn't have this problem. –
Jemine You can also use this free GUI tool:
Following the links in that article takes you to this one. Quoting:
To determine if a specified directory is a mounted folder, first call the GetFileAttributes function and inspect the FILE_ATTRIBUTE_REPARSE_POINT flag in the return value to see if the directory has an associated reparse point. If it does, use the FindFirstFile and FindNextFile functions to obtain the reparse tag in the dwReserved0 member of the WIN32_FIND_DATA structure. To determine if the reparse point is a mounted folder (and not some other form of reparse point), test whether the tag value equals the value IO_REPARSE_TAG_MOUNT_POINT. For more information, see Reparse Points.
© 2022 - 2024 — McMap. All rights reserved.