I have the following batch script and i keep getting the error "0 was unexpected at this time."
IF "%Logs%"=="true" (
for /f %%i in ('dir \%Device%\logs') do set cmd=%%i
if %cmd% GTR 0 (
echo Folder does exist.
)
)
I think I have to fix it with delayed expansion but I don't know how, I would appreciate any help, thanks in advance!