I excute the bat file from command line
@echo off
FOR /D %%a IN (*) DO (
for /f "tokens=*" %%g in ('cd %%a ^& dir /a:d ^| find ".git"') do (
if %%g=="" @echo %%ais not a repo
)
)
to check if a certain subfolders of a directory are not git repositories, but nothing is displayed in command line when I execute it.