- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2019-02-01T15:38:08+09:00","default:ryuichi","ryuichi")
#author("2022-03-20T15:40:12+09:00","default:ryuichi","ryuichi")
* シムリンクを探す [#gfa90720]
dir -Recurse | ? { $_.LinkType } | select FullName
dir -Recurse | ? .LinkType | select FullName # ちょっと省略
dir -Recurse -Depth 1 | ? .LinkType | select FullName # 直下のファイルと直下のフォルダの中のファイルだけ
** 探す [#p4ab3bdf]
dir -Recurse | ? LinkType | select FullName, LinkType, Target
または
dir | ? Attributes -Match "ReparsePoint"
** 参考 [#u351f15c]
https://stackoverflow.com/questions/817794/find-out-whether-a-file-is-a-symbolic-link-in-powershell