I’ve been looking at the Windows 7 symbolic links (using mklink) [Edit – they are also supported on Windows Vista, Windows Server 2003, Windows Server 2008]. Is it possible to programmatically determine if a folder is a symlink?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use GetFileAttributes and check for FILE_ATTRIBUTE_REPARSE_POINT.
ETA: Since you clarified now that you’re doing this from C#, you can do this natively there:
You can check for the ReparsePoint flag in the returned enum value.