var attr = File.GetAttributes(entry.FullName); if ((attr & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint)
In Windows, symbolic links are implemented as a file type that contains a path to the target file or directory. When a program tries to access a symbolic link, the operating system resolves the link by following the path to the target file or directory.
static void CreateLink(string[] args) = SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE; symbolic link in windows
bool success = CreateSymbolicLink(link, target, flags);
static void ListLinks(string directory)
A symbolic link, also known as a symlink, is a type of file that serves as a reference or pointer to another file or directory. In Windows, symbolic links are similar to shortcuts, but they function at the file system level, making them more powerful and flexible.
[Parameter(Position=2)] [string]$TargetPath, var attr = File
)