Symlink: Difference between revisions
From Rabbi Blog
mNo edit summary |
m (→Powershell) |
||
| Line 13: | Line 13: | ||
==Powershell== | ==Powershell== | ||
<pre>Get-ChildItem -Path C:\ -Recurse -Force -ErrorAction SilentlyContinue | Where-Object { $_.LinkType -ne $null -and $_.LinkType -ne 'HardLink' } | Select-Object FullName, LinkType, Target | Out-File -FilePath C:\Users\ | <pre>Get-ChildItem -Path C:\ -Recurse -Force -ErrorAction SilentlyContinue | | ||
Where-Object { $_.LinkType -ne $null -and $_.LinkType -ne 'HardLink' } | | |||
Select-Object FullName, LinkType, Target | | |||
Format-Table -AutoSize | | |||
Out-String -Width 4096 | | |||
Out-File -FilePath C:\Users\YourUser\Desktop\Symlinks_Full_Paths.txt -Encoding UTF8</pre> | |||
Revision as of 00:30, 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' } |
Select-Object FullName, LinkType, Target |
Format-Table -AutoSize |
Out-String -Width 4096 |
Out-File -FilePath C:\Users\YourUser\Desktop\Symlinks_Full_Paths.txt -Encoding UTF8