TCC 9.02.152 Windows XP [Version 5.1.2600]
batch file fragment
I consistently get errors from this batch file. The first ACTIVATE command prints an ERROR message, The operation completed successfully "A Title177*"
The second ACTIVATE prints and error message, The system could not find... "A Title177*"
If I run the complete batch file on another PC I get the same error messages, but not as consistently.
If I replace ACTIVATE with CMDOW - an external utility that activates windows based on their title - I get no errors and windows are activated as expected.
batch file fragment
Code:
@echo off
setlocal
set title=A Title177
title %title%
on errormsg pause
...
ACTIVATE "%title%*"
...
do forever
on break leave
ACTIVATE "%title%*"
on break
enddo
The second ACTIVATE prints and error message, The system could not find... "A Title177*"
If I run the complete batch file on another PC I get the same error messages, but not as consistently.
If I replace ACTIVATE with CMDOW - an external utility that activates windows based on their title - I get no errors and windows are activated as expected.