mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 22:38:46 +02:00
Updated check-symlinks.ps1
This commit is contained in:
@ -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"
|
||||||
|
Reference in New Issue
Block a user