开发者

How to list all symbolic links on an NTFS filesystem

开发者 https://www.devze.com 2022-12-24 02:31 出处:网络
since Windows Vista there is an new Win32-API call CreateSymbolicLink to create a symbolic link on the NTFS 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开发者_开发问答?


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:\


You can also use this free GUI tool:

http://www.nirsoft.net/utils/ntfs_links_view.html


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消