Actions

Symlink

From Rabbi Blog

Revision as of 11:13, 24 November 2025 by Rabbi Bob (talk | contribs) (→‎Powershell)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


C:\Windows\system32>mklink /J "C:\GAMES" "D:\GAMES"
Junction created for C:\GAMES <<===>> D:\GAMES


C:\<sim> <<===>> D:\<actual target with files\folders>

List

dir /AL /S C:\ | find "SYMLINK"

Powershell

Get-ChildItem -Path C:\ -Recurse -Force -ErrorAction SilentlyContinue | Where-Object { $_.LinkType -ne $null -and $_.LinkType -ne 'HardLink' } | Out-File -FilePath C:\Users\username\Desktop\Symlinks_and_Junctions.txt -Encoding UTF8