mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 22:38:46 +02:00
Updated the manuals
This commit is contained in:
@ -6,7 +6,7 @@ This PowerShell script sends a UDP datagram message to an IP address and port.
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./send-udp.ps1 [[-TargetIP] <String>] [[-TargetPort] <Int32>] [[-Message] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/send-udp.ps1 [[-TargetIP] <String>] [[-TargetPort] <Int32>] [[-Message] <String>] [<CommonParameters>]
|
||||
|
||||
-TargetIP <String>
|
||||
Specifies the target IP address
|
||||
@ -44,7 +44,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./send-udp 192.168.100.100 8080 "TEST"
|
||||
✔️ Done.
|
||||
✅ Done.
|
||||
|
||||
```
|
||||
|
||||
@ -72,7 +72,7 @@ Script Content
|
||||
Specifies the message text to send
|
||||
.EXAMPLE
|
||||
PS> ./send-udp 192.168.100.100 8080 "TEST"
|
||||
✔️ Done.
|
||||
✅ Done.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -94,7 +94,7 @@ try {
|
||||
$SendMessage = $Socket.Send($EncodedText, $EncodedText.Length, $EndPoints)
|
||||
$Socket.Close()
|
||||
|
||||
"✔️ Done."
|
||||
"✅ Done."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -102,4 +102,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of send-udp.ps1 as of 08/15/2024 09:50:53)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of send-udp.ps1 as of 11/08/2024 12:34:55)*
|
||||
|
Reference in New Issue
Block a user