File size: 734 Bytes
2db2c30 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Check if scrcpy and adb are available
Write-Host "Checking requirements..." -ForegroundColor Cyan
$scrcpyBaseDir = "C:\Users\User\Desktop\scrcpy\scrcpy-win64-v3.3.4"
$scrcpyExe = "$scrcpyBaseDir\scrcpy.exe"
$adbExe = "$scrcpyBaseDir\adb.exe"
if (Test-Path $scrcpyExe) {
Write-Host "scrcpy found at: $scrcpyExe" -ForegroundColor Green
}
else {
Write-Host "scrcpy NOT found at: $scrcpyExe" -ForegroundColor Red
Write-Host " Please check the path."
}
if (Test-Path $adbExe) {
Write-Host "adb found at: $adbExe" -ForegroundColor Green
}
else {
Write-Host "adb NOT found at: $adbExe (usually comes with scrcpy)." -ForegroundColor Yellow
}
Write-Host "`nPress Enter to exit..."
Read-Host
|