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

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -