Updated the manuals

This commit is contained in:
Markus Fleschutz
2025-06-22 10:38:33 +02:00
parent df7368ff91
commit d8690419ea
661 changed files with 1512 additions and 966 deletions

View File

@@ -17,7 +17,7 @@ Example
-------
```powershell
PS> ./cd-home.ps1
📂C:\Users\Markus entered (has 4 files and 7 subfolders)
📂C:\Users\Markus with 4 files and 7 folders entered.
```
@@ -39,7 +39,7 @@ Script Content
This PowerShell script changes the working directory to the user's home directory.
.EXAMPLE
PS> ./cd-home.ps1
📂C:\Users\Markus entered (has 4 files and 7 subfolders)
📂C:\Users\Markus with 4 files and 7 folders entered.
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@@ -47,12 +47,12 @@ Script Content
#>
try {
if (-not(Test-Path "~" -pathType container)) { throw "No home directory at $path" }
if (-not(Test-Path "~" -pathType container)) { throw "No home directory at: $path" }
$path = Resolve-Path "~"
Set-Location "$path"
$files = Get-ChildItem $path -attributes !Directory
$folders = Get-ChildItem $path -attributes Directory
"📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)"
"📂$path with $($files.Count) files and $($folders.Count) folders entered."
exit 0 # success
} catch {
"⚠️ Error: $($Error[0])"
@@ -60,4 +60,4 @@ try {
}
```
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:52)*
*(page generated by convert-ps2md.ps1 as of 06/22/2025 10:37:34)*