scripting - Remove spam from loop command in batch file -


this i'm doing, , works...but it's not pretty.

:scan<br> echo "running scan again..."<br> /f %%i in ('%systemroot%\system32\schtasks.exe /query /s server /fo list /tn "task" ^| %systemroot%\system32\find.exe /c "running"') if "%%i"  == "3" goto :scan 

if gets return of 3, repeats on , on until result changes.

that's working. i'm wondering is, how make doesn't spam window running scan again... on , on until ends? can have 1 instance of running scan again... shown, have task continue?

to elaborate on stephan's response. put label below text want omit, change goto point that. example, see :scannolabel changes below

:scan echo "running scan again..." :scannolabel /f %%i in ('%systemroot%\system32\schtasks.exe /query /s server /fo list /tn "task" ^| %systemroot%\system32\find.exe /c "running"') if "%%i" == "3" goto :scannolabel 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -