Go-Crashdumps
Change to the crash dumps folder
#requires -version 5.1
try {
if ($IsLinux -or $IsMacOS) { throw "This script requires Windows" }
[string]$path = Resolve-Path -Path "~"
if (!(Test-Path "$path" -pathType container)) { throw "No home directory at '$path'" }
$path += "\AppData\Local\CrashDumps"
if (-not(Test-Path "$path" -pathType container)) { throw "The path to crashdumps folder '$path' doesn't exist (yet)" }
Set-Location "$path"
$files = Get-ChildItem $path -attributes !Directory
"??$path entered, has $($files.Count) files."
exit 0 # success
} catch {
"?? ERROR: $($Error[0])"
exit 1
}This script has no configurable parameters.