Datasets:
File size: 700 Bytes
598838a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <#
launch.ps1 - Starts the Automatic Thresholding GUI application.
Outputs ONLY the numeric process id (PID) as the first line of stdout so
the test harness can capture and manage the process. Works standalone
(does not require build.ps1 to have been run in the same session), as long
as the executable exists at the path below.
#>
$ErrorActionPreference = 'Stop'
$exePath = (Join-Path (Split-Path $PSScriptRoot -Parent) 'install\AutomaticThresholding.exe')
# Run from the install directory so any relative paths resolve predictably.
$workDir = Split-Path -Parent $exePath
$proc = Start-Process -FilePath $exePath -WorkingDirectory $workDir -PassThru
Write-Output $proc.Id
|