Stop DIR command searching after first hit is found
you can't stop dir
, but you can use anoter method:
for /r "c:\" %%i in (excel.exe) do (echo -- %%i & goto :eof)
you can't stop dir
, but you can use anoter method:
for /r "c:\" %%i in (excel.exe) do (echo -- %%i & goto :eof)