Actions

Symlink: Difference between revisions

From Rabbi Blog

(Created page with "Category:Windows <pre> C:\Windows\system32>mklink /J "C:\GAMES" "D:\GAMES" Junction created for C:\GAMES <<===>> D:\GAMES C:\<sim> <<===>> D:\<actual target with files\...")
 
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:


C:\<sim> <<===>> D:\<actual target with files\folders>
C:\<sim> <<===>> D:\<actual target with files\folders>
</pre>
=List=
<pre>dir /AL /S C:\ | find "SYMLINK"</pre>
==Powershell==
<pre>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
</pre>
</pre>

Latest revision as of 11:13, 24 November 2025


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