The next code segment reads the watch command strings back into your ESL program to be used with your ECS code.
copy "ecscmdsv.dat" to EcsCommandFile_SV
call ReadEcsCommandFile ( EcsCommandFile_SV, EcsTextRegion_SV )
...
copy "WatchForWelcome" to WatchName_SV
call ReadEcsCommand ( EcsTextRegion_SV, TempString_SV, Watch_SV )
copy 6000 to TimeLimit_IV # this can also be set outside of
# ESL and read in a runtime
call EcsWatchAndWait ( TimeLimit_IV, Watch_SV )
copy errorlevel to ErrorLevel_IV call ProcessEcsError ( ErrorLevel_IV )
call ProcessEcsError ( ErrorLevel_IV )
...