mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 05:04:39 +02:00
Updated the manuals
This commit is contained in:
@ -6,7 +6,7 @@ This PowerShell script verifies any XML file (with suffix .xml) in the given dir
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-xml-files.ps1 [[-path] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/check-xml-files.ps1 [[-path] <String>] [<CommonParameters>]
|
||||
|
||||
-path <String>
|
||||
Specifies the path to the directory tree (current working dir by default)
|
||||
@ -27,7 +27,7 @@ Example
|
||||
```powershell
|
||||
PS> ./check-xml-files.ps1 C:\Windows
|
||||
...
|
||||
✔️ Checked 3387 XML files (2462 invalid, 925 valid) within 📂C:\Windows in 116 sec
|
||||
✅ Checked 3387 XML files (2462 invalid, 925 valid) within 📂C:\Windows in 116 sec
|
||||
|
||||
```
|
||||
|
||||
@ -52,7 +52,7 @@ Script Content
|
||||
.EXAMPLE
|
||||
PS> ./check-xml-files.ps1 C:\Windows
|
||||
...
|
||||
✔️ Checked 3387 XML files (2462 invalid, 925 valid) within 📂C:\Windows in 116 sec
|
||||
✅ Checked 3387 XML files (2462 invalid, 925 valid) within 📂C:\Windows in 116 sec
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -75,7 +75,7 @@ try {
|
||||
|
||||
[int]$total = $valid + $invalid
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Checked $total XML files ($invalid invalid, $valid valid) within 📂$path in $elapsed sec"
|
||||
"✅ Checked $total XML files ($invalid invalid, $valid valid) within 📂$path in $elapsed sec"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -83,4 +83,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-xml-files.ps1 as of 08/15/2024 09:50:46)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-xml-files.ps1 as of 11/08/2024 12:34:47)*
|
||||
|
Reference in New Issue
Block a user