i have a script for adb batch and i'm having difficulty in checking version with batch command let this script:
@echo off
set sdkversioncheck=adb shell getprop ro.build.version.sdk
set ver=28
if %sdkversioncheck% gtr %ver% (@echo "Greater Version") else (@echo "Lower Version")
@pause >NUL
i want this one to check the android version if device is plugged in and adb commands are working and whenever i try to run above command then i get this in response: shell was unexpected at this time.