10 lines
459 B
PowerShell
10 lines
459 B
PowerShell
|
|
Set-Location -LiteralPath 'C:\Users\tonycao\work\twincat3-auto-cli\TwinCAT_EL6695_Secondary'
|
||
|
|
$helper = 'C:\Program Files (x86)\Beckhoff\TwinCAT\3.1\Components\Base\TcSysManCmdHelper.exe'
|
||
|
|
$tsproj = 'C:\Users\tonycao\work\twincat3-auto-cli\TwinCAT_EL6695_Secondary\TwinCAT_EL6695_Secondary.tsproj'
|
||
|
|
|
||
|
|
Write-Host "Activating TwinCAT configuration..."
|
||
|
|
& $helper -v 4026.0 -o $tsproj -a -s $tsproj 2>&1
|
||
|
|
$exit = $LASTEXITCODE
|
||
|
|
Write-Host "Exit code: $exit"
|
||
|
|
exit $exit
|