app center;增加發送ping的秒
This commit is contained in:
1 parent
1bd1ffdb5a
commit
d754ff3b15
719 files changed
+34172
-2875
No files matched your search
@@ -0,0 +1,21 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT license.
|
||||
|
||||
param
|
||||
(
|
||||
[Parameter(Position=0, Mandatory = $false, HelpMessage="Source folder", ValueFromPipeline = $true)]
|
||||
$Source,
|
||||
[Parameter(Position=1, Mandatory = $false, HelpMessage="Destination file path", ValueFromPipeline = $true)]
|
||||
$Destination
|
||||
)
|
||||
|
||||
Try
|
||||
{
|
||||
Add-Type -assembly "system.io.compression.filesystem"
|
||||
[io.compression.zipfile]::CreateFromDirectory($Source, $Destination)
|
||||
}
|
||||
Catch
|
||||
{
|
||||
$Exc = $_.Exception.Message
|
||||
Write-Error "File $Destination was not created. Error: $Exc"
|
||||
}
|
||||
Reference in new issue
Block a user