XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEEDToolBox

【WinUI】XFE精英危险工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
[CmdletBinding()]
param([Parameter(Mandatory)][string]$OutputDirectory)
$ErrorActionPreference = 'Stop'
$taskOutput = (Resolve-Path -LiteralPath $OutputDirectory).Path
if (-not (Test-Path -LiteralPath (Join-Path $taskOutput 'status.json'))) { throw 'Not a toolbox capture directory.' }
[IO.File]::WriteAllText((Join-Path $taskOutput 'stop.request'), [DateTimeOffset]::UtcNow.ToString('O'))
Write-Output 'Stop requested. The current bounded capture segment will finish within 30 seconds.'