[WT-support] How to block Win-Test to be started twice?

Bob Wilson, N6TV n6tv at arrl.net
Wed Dec 4 09:07:39 CET 2013


On Tue, Dec 3, 2013 at 11:55 PM, Fabian Kurz <fabian at fkurz.net> wrote:

> you can use a Windows batch file to do this, as described e.g. here:
>
> http://stackoverflow.com/questions/162291/how-to-check-if-a-process-is-running-via-a-batch-script
>
> This solution seems to be the fastest and easiest:
>
> tasklist /FI "IMAGENAME eq wt.exe" 2>NUL | find /I /N "wt.exe">NUL
> if "%ERRORLEVEL%"=="1" start wt.exe
>
> Just copy the lines above into a file, save it as e.g. "wt.bat", and
> start WinTest by this batch file. It won't allow a second instance to
> run.
>
> You may have to add the full path to wt.exe in the last line, unless
> it's in the PATH.
>

Very good Fabian!

73,
Bob, N6TV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.f5mzn.org/pipermail/support/attachments/20131204/96909dc2/attachment.html>


More information about the Support mailing list