@echo off echo Adding adb and ffmpeg to PATH... setx /m PATH…
- User
@echo off echo Adding adb and ffmpeg to PATH... setx /m PATH "C:\adb;C:\ffmpeg\bin;%PATH%" echo Path updated successfully. echo Running Hyper-V installation...
dism /online /enable-feature /featurename:Microsoft-Hyper-V /all /norestart
echo Installing aria2... winget install --id=aria2.aria2 -e
echo Installing FFmpeg... winget install --id=Gyan.FFmpeg -e
echo Installing Android Platform Tools... winget install --id=Google.PlatformTools -e
setx ADB_VENDOR_KEYS 0
echo %ADB_VENDOR_KEYS%
echo %ADB_VENDOR_KEYS%
echo Connecting to ADB... adb connect 127.0.0.1:58526
echo Connecting to ADB... adb connect 127.0.0.1:58526
echo Installing GPAC... winget install --id=GPAC.GPAC -e
echo Installing 7-Zip... winget install -e --id 7zip.7zip
@echo off adb kill-server del "%USERPROFILE%.android\adbkey*" 2>nul adb connect 127.0.0.1:58526 adb devices
echo Connecting to ADB... adb connect 127.0.0.1:58526
echo Running PowerShell commands... powershell -ExecutionPolicy Bypass -File "%~dp0RunPowerShellCommands.ps1"
echo All operations completed. pause
I have this script But every time I run it for the first time after a few commands I get this error: Connecting to ADB... 'adb' is not recognized as an internal or external command, operable program or batch file
Only the second time I activate the script it does not happen and works fine Could you explain to me why and also suggest a fix that won't happen again and will work the first time
- Assistant