Updated check-symlinks.ps1

This commit is contained in:
Markus Fleschutz
2025-08-04 09:25:06 +02:00
parent 310fcbe2b3
commit 93ae529ca3

View File

@ -6,9 +6,9 @@
.PARAMETER path .PARAMETER path
Specifies the file path to the directory tree Specifies the file path to the directory tree
.EXAMPLE .EXAMPLE
PS> ./check-symlinks D:\ PS> ./check-symlinks C:\Windows
⏳ Checking symlinks at 'D:\'... (please wait) ⏳ Checking symlinks at 'C:\Windows'... (please wait)
Found 0 broken symlinks at 📂D:\ in 60s. No symlinks at C:\Windows (took 102s).
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -18,7 +18,7 @@
param([string]$path = "") param([string]$path = "")
try { try {
if ($path -eq "" ) { $path = Read-Host "Enter the path to the folder" } if ($path -eq "" ) { $path = Read-Host "Enter the file path to the directory tree" }
$stopWatch = [system.diagnostics.stopwatch]::startNew() $stopWatch = [system.diagnostics.stopwatch]::startNew()
$fullPath = Resolve-Path "$path" $fullPath = Resolve-Path "$path"