mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-20 03:37:56 +02:00
Updated cd-crashdumps.ps1 and list-cli-tools.ps1
This commit is contained in:
parent
3478ceb585
commit
ddce6598e8
@ -4,8 +4,8 @@
|
|||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script changes the working directory to the crash dumps directory (Windows only). Whenever a software crashes and crash dumps are enabled(!) a crash dump file is written. This file helps to identify the reason for the crash.
|
This PowerShell script changes the working directory to the crash dumps directory (Windows only). Whenever a software crashes and crash dumps are enabled(!) a crash dump file is written. This file helps to identify the reason for the crash.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-crashdumps
|
PS> ./cd-crashdumps.ps1
|
||||||
📂C:\Users\Markus\AppData\Local\CrashDumps entered (has 3 files and 0 folders)
|
📂C:\Users\Markus\AppData\Local\CrashDumps with 3 files entered.
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -20,10 +20,10 @@ try {
|
|||||||
|
|
||||||
$path += "\AppData\Local\CrashDumps"
|
$path += "\AppData\Local\CrashDumps"
|
||||||
if (!(Test-Path "$path" -pathType container)) { throw "No crashdumps folder at $path" }
|
if (!(Test-Path "$path" -pathType container)) { throw "No crashdumps folder at $path" }
|
||||||
Set-Location "$Path"
|
|
||||||
|
Set-Location "$path"
|
||||||
$files = Get-ChildItem $path -attributes !Directory
|
$files = Get-ChildItem $path -attributes !Directory
|
||||||
$folders = Get-ChildItem $path -attributes Directory
|
"📂$path with $($files.Count) files entered."
|
||||||
"📂$path entered (has $($files.Count) files and $($folders.Count) folders)"
|
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0])"
|
"⚠️ Error: $($Error[0])"
|
||||||
|
@ -151,6 +151,7 @@ function List-CLI-Tools {
|
|||||||
ListTool driverquery ""
|
ListTool driverquery ""
|
||||||
ListTool du "--version"
|
ListTool du "--version"
|
||||||
ListTool echo "--version"
|
ListTool echo "--version"
|
||||||
|
ListTool edit.exe "--version"
|
||||||
ListTool egrep "--version"
|
ListTool egrep "--version"
|
||||||
ListTool emacs "--version"
|
ListTool emacs "--version"
|
||||||
ListTool env "--version"
|
ListTool env "--version"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user