Symbolic Link In Windows -

"List" List-Symlinks -Path $SearchPath

if (Test-Path $Link) Write-Error "Link already exists: $Link" return symbolic link in windows

var di = new DirectoryInfo(directory); foreach (var entry in di.GetFileSystemInfos()) var attr = File.GetAttributes(entry.FullName); if ((attr & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint) Console.WriteLine($"Symlink: entry.FullName"); [string]$SearchPath = "." )

:

function Remove-Symlink param([string]$Path) if (-not (Test-Path $Path)) Write-Error "Path not found: $Path" return symbolic link in windows

[switch]$Directory, [switch]$Junction, [switch]$Relative, [string]$SearchPath = "." )