11 lines
526 B
PowerShell
11 lines
526 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'
|
||
|
|
|
||
|
|
& $helper -v 4026.0 -o $tsproj -w 'TIID' 'tiid.xml'
|
||
|
|
Write-Host "Exit code: $LASTEXITCODE"
|
||
|
|
Write-Host "tiid.xml exists: $(Test-Path 'tiid.xml')"
|
||
|
|
if (Test-Path 'tiid.xml') {
|
||
|
|
Write-Host "Size: $((Get-Item 'tiid.xml').Length)"
|
||
|
|
}
|