Final version
BIN
gui/assets/build/7zip.exe
Normal file
|
Before Width: | Height: | Size: 774 B After Width: | Height: | Size: 774 B |
|
Before Width: | Height: | Size: 1011 B After Width: | Height: | Size: 1011 B |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -1,40 +0,0 @@
|
||||
[cmdletbinding(
|
||||
DefaultParameterSetName = '',
|
||||
ConfirmImpact = 'low'
|
||||
)]
|
||||
Param(
|
||||
[Parameter(
|
||||
Mandatory = $True,
|
||||
Position = 0,
|
||||
ParameterSetName = '',
|
||||
ValueFromPipeline = $True)]
|
||||
[String]$computer,
|
||||
[Parameter(
|
||||
Position = 1,
|
||||
Mandatory = $True,
|
||||
ParameterSetName = '')]
|
||||
[Int16]$port
|
||||
)
|
||||
Process {
|
||||
$udpobject = new-Object system.Net.Sockets.Udpclient
|
||||
$udpobject.client.ReceiveTimeout = 2000
|
||||
$udpobject.Connect("$computer", $port)
|
||||
$a = new-object system.text.asciiencoding
|
||||
$byte = $a.GetBytes("$( Get-Date )")
|
||||
[void]$udpobject.Send($byte, $byte.length)
|
||||
$remoteendpoint = New-Object system.net.ipendpoint([system.net.ipaddress]::Any, 0)
|
||||
Try
|
||||
{
|
||||
$receivebytes = $udpobject.Receive([ref]$remoteendpoint)
|
||||
[string]$returndata = $a.GetString($receivebytes)
|
||||
If ($returndata)
|
||||
{
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
Catch
|
||||
{
|
||||
$udpobject.close()
|
||||
exit 1
|
||||
}
|
||||
}
|
||||