Skip to content

A more manageable scrcpy-noconsole.bat Windows batch script#6868

Open
rainman74 wants to merge 1 commit into
Genymobile:masterfrom
rainman74:master
Open

A more manageable scrcpy-noconsole.bat Windows batch script#6868
rainman74 wants to merge 1 commit into
Genymobile:masterfrom
rainman74:master

Conversation

@rainman74

Copy link
Copy Markdown

A more manageable scrcpy-noconsole.bat Windows batch script has been attached.

@rom1v

rom1v commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Since it's a .bat, it will stil open a terminal even before your command gets a chance to be executed, that will be immediately closed, doesn't it?

If so, it's even simpler to do start /b scrcpy %*, isn't it?

@rainman74

rainman74 commented May 27, 2026

Copy link
Copy Markdown
Author

Since it's a .bat, it will stil open a terminal even before your command gets a chance to be executed, that will be immediately closed, doesn't it?

If so, it's even simpler to do start /b scrcpy %*, isn't it?

Yes, a start /b "" "scrcpy.exe" serves the purpose.

However, it can be used if you utilize this from other batch files (e.g., calling multiple Android TV clients at once) to automatically close the console window/s (in my opinion, there is no other way to do this detached).

Example:

@echo off & setlocal

REM TV-Arbeitszimmer
start "" cmd /c "call "%CMDPATH%\adb\scrcpy\scrcpy-noconsole.bat" --tcpip=192.168.178.51:5555 -b1M -m1280 --max-fps=30 -t -w --stay-awake --window-title=TV-Arbeitszimmer"

timeout /t 1 /nobreak >nul

REM TV-Wohnzimmer
start "" cmd /c "call "%CMDPATH%\adb\scrcpy\scrcpy-noconsole.bat" --tcpip=192.168.178.50:5555 -b1M -m1280 --max-fps=30 -t -w --stay-awake --window-title=TV-Wohnzimmer"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants