DANY CHOUINARD <chouinard.d...@csob.qc.ca> writes:

> Last friday I was able to decipher the XML to control the office2010

[...]

> ---WAIT.BAT----
> :UN
> ping.exe -n 6 -w 1000 127.0.0.1 >NUL
> tasklist /FI "IMAGENAME eq OSE.exe" 2>NUL | find /I /N "OSE.exe">NUL
> if "%ERRORLEVEL%"=="0" goto UN
> ---------------

For the waiting loops I'm doing:

=====
REM Wait enought (100 * 6s max) for schmurtz to finish
REM avoid endless loop
FOR /L %%G IN (0,1,100) DO (
    tasklist | find /I "schmurtz" > NUL || goto endfor
    ping -n 6 -w 1000 127.0.0.1 > NUL
)
:endfor
=====

Regards.
-- 
Daniel Dehennin
RAIP de l'Orne

Attachment: pgpQ3QQA12z01.pgp
Description: PGP signature

-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to