ECHO OFF
set CUR_YYYY=%date:~10,4%
set CUR_MM=%date:~4,2%
set CUR_DD=%date:~7,2%
set CUR_HH=%time:~0,2%
if %CUR_HH% lss 10 (set CUR_HH=0%time:~1,1%)
set CUR_NN=%time:~3,2%
set CUR_SS=%time:~6,2%
set CUR_MS=%time:~9,2%
set screenrecordname=%CUR_DD%_%CUR_MM%_%CUR_YYYY%_%CUR_HH%_%CUR_NN%%CUR_SS%
ECHO CAPTURING AND SAVING SCREEN RECORDING
adb shell screenrecord /sdcard/%screenrecordname%.mp4 & adb pull /sdcard/%screenrecordname%.mp4
if i run these shell and pull individally then i'm able to see the video If i run in batch using & then only i'm getting this error Is there any other solution that i can use rather than & to take screen record and to save the screen record from phone to PC through batch file
User contributions licensed under CC BY-SA 3.0