# Start frpc with the project frpc.toml (copy frpc.exe first if missing). # ASCII only, avoids ANSI encoding issues with Chinese paths. $ErrorActionPreference = 'Stop' $FrpDir = $PSScriptRoot $Exe = Join-Path $FrpDir 'frpc.exe' if (-not (Test-Path $Exe)) { Write-Output 'frpc.exe not found, installing ...' & (Join-Path $PSScriptRoot 'frp-install.ps1') } $ProjectRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot) $Config = Join-Path $ProjectRoot 'frpc.toml' $Config = (Resolve-Path $Config).Path Write-Output "Starting frpc with config: $Config" & $Exe -c $Config