• PSA: Batch script mirroring Android on the desktop over Wi-Fi (without USB)

    From Maria Sophia@mariasophia@comprehension.com to alt.comp.os.windows-11,alt.msdos.batch,alt.comp.microsoft.windows on Fri Jun 12 16:22:53 2026
    From Newsgroup: alt.comp.os.windows-11


    :: adbconnect.bat
    :: No-USB, Wi-Fi only, adb/scrcpy static IP and static 5555 port connect
    :: v1p0 20260611 converted adbconnect.vbs to adbconnect.bat
    :: Connects desktop & phone over adb & mirrors phone on the monitor
    :: No USB cord is used in this process as it's all done over Wi-Fi
    :: Should work even if either the PC and/or the phone is rebooted
    :: The script will ask only for the minimum amount of data needed
    :: Change the phone static IP address as needed to fit your LAN IP address
    :: v1p1 20260611 reliability improvements added to v1p0
    :: Added better device lookup (skip header,ignore blanks,avoid false matches)
    :: Added retry logic for adb pair & adb connect (for when phone not ready)
    :: Improved polish (consistent quoting, stable scrcpy launch)
    :: v1p2 20260611 further reliability improvements added to v1p1
    :: Use separate retry counters for pair/connect to avoid loop
    :: interference (ATTEMPTS_PAIR, ATTEMPTS_CONN)
    :: Added fail-fast with clear error codes and user hints after retry
    :: exhaustion
    :: Added a detection of the device id after initial connect
    :: (handles ephemeral adb ports like 192.168.1.4:54321)
    :: Use DEVICE_ID for subsequent -s tcpip command (quoted)
    :: to avoid parsing issues with colons
    :: Fallback device-id lookup when initial pattern match fails
    :: (robust parsing of "adb devices")
    :: Consistent quoting of %ADB% and device identifiers to avoid
    :: CMD parsing errors
    :: v1p3 20260612 moved the pipe outside the FOR command for reliability
    :: v1p4 20260612 divorced the console from the mirrored Android image
    :: so that either can be killed by the user and the other will remain
    @echo off
    setlocal enabledelayedexpansion

    set PHONE_IP=192.168.1.4
    set SCRCPY_OPTS=--keyboard=sdk --always-on-top

    echo.
    echo === ADB Wireless Auto-Connect ===
    echo Phone IP: %PHONE_IP%
    echo.

    REM 1. Find adb
    for /f "delims=" %%A in ('where adb 2^>nul') do (
    if not defined ADB set ADB=%%A
    )

    if not defined ADB (
    echo [ERROR] adb.exe not found.
    exit /b
    )

    REM Ensure .exe extension
    if /i not "%ADB:~-4%"==".exe" set ADB=%ADB%.exe

    echo Using ADB: "%ADB%"
    echo.

    REM 2. Check if already connected
    echo Checking existing ADB devices...

    REM v1p1 fixed device lookup:
    REM a. skip header line
    REM b. ignore blank lines
    REM c. only process lines containing digits
    REM d. avoid CMD parser bugs by NOT piping inside the FOR command
    REM v1p3 moved pipe OUTSIDE the for loop
    :: for /f "skip=1 tokens=1" %%D in ('"%ADB%" devices') do (

    set DEVICE_ID=
    for /f "skip=1 tokens=1" %%I in ('"%ADB%" devices') do (
    echo %%I | findstr /R "[0-9]" >nul && (
    echo %%I | findstr /I "%PHONE_IP%" >nul && (
    if not defined DEVICE_ID set DEVICE_ID=%%I
    )
    )
    )

    if defined DEVICE_ID (
    echo Already connected on %DEVICE_ID%
    goto RUN_TCPIP
    )

    echo %%D | findstr /R "[0-9]" >nul && (
    echo %%D | findstr /i "%PHONE_IP%" >nul && (
    echo Already connected on %%D
    set DEVICE_ID=%%D
    goto RUN_TCPIP
    )
    )
    )

    echo Not connected. Need to pair.
    echo.

    REM 3. Ask user for pairing info
    set /p PAIR_PORT=Enter Wireless debugging pairing port (shown on phone):
    set /p PAIR_CODE=Enter Wireless debugging pairing code (shown on phone):
    set /p DEBUG_PORT=Enter Wireless debugging debug port (shown on phone):

    echo.
    echo Pairing with: %PHONE_IP%:%PAIR_PORT%

    REM Retry logic for adb pair (3 attempts)
    set ATTEMPTS_PAIR=0
    :PAIR_RETRY
    set /a ATTEMPTS_PAIR+=1
    "%ADB%" pair %PHONE_IP%:%PAIR_PORT% %PAIR_CODE%
    if errorlevel 1 (
    if !ATTEMPTS_PAIR! lss 3 (
    echo Pair failed, retrying...
    timeout /t 2 >nul
    goto PAIR_RETRY
    ) else (
    echo [ERROR] adb pair failed after %ATTEMPTS_PAIR% attempts.
    echo Hint: Open Wireless debugging -> "Pair device with pairing code" on
    the phone, then re-run this script.
    exit /b 1
    )
    )
    echo.

    echo Connecting to debug port: %PHONE_IP%:%DEBUG_PORT%

    REM Retry logic for adb connect (3 attempts)
    set ATTEMPTS_CONN=0
    :CONNECT_RETRY
    set /a ATTEMPTS_CONN+=1
    "%ADB%" connect %PHONE_IP%:%DEBUG_PORT%
    if errorlevel 1 (
    if !ATTEMPTS_CONN! lss 3 (
    echo Connect failed, retrying...
    timeout /t 2 >nul
    goto CONNECT_RETRY
    ) else (
    echo [ERROR] adb connect %PHONE_IP%:%DEBUG_PORT% failed after
    %ATTEMPTS_CONN% attempts.
    echo Hint: Ensure phone is on the same Wi-Fi and Wireless debugging
    pairing UI is active.
    exit /b 2
    )
    )
    echo.

    REM After connect, get the actual device id reported by adb (handles ephemeral ports)
    set DEVICE_ID=
    for /f "tokens=1" %%I in ('"%ADB%" devices ^| findstr /R /C:"%PHONE_IP%[: ]"') do (
    if not defined DEVICE_ID set DEVICE_ID=%%I
    )

    if not defined DEVICE_ID (
    REM fallback: try to find any non-empty device id line
    for /f "skip=1 tokens=1" %%I in ('"%ADB%" devices') do (
    echo %%I | findstr /R "[0-9]" >nul && if not defined DEVICE_ID set DEVICE_ID=%%I
    )
    )

    if defined DEVICE_ID (
    echo Found device id: "%DEVICE_ID%"
    ) else (
    echo [WARN] No device id found after connect. Continuing using %PHONE_IP%:%DEBUG_PORT% for tcpip attempt.
    set DEVICE_ID=%PHONE_IP%:%DEBUG_PORT%
    )

    echo Switching to TCP/IP 5555...
    "%ADB%" -s "%DEVICE_ID%" tcpip 5555
    echo.

    echo Connecting final port: %PHONE_IP%:5555
    "%ADB%" connect %PHONE_IP%:5555
    echo.

    set DEVICE_ID=%PHONE_IP%:5555
    goto RUN_SCRCPY

    :RUN_TCPIP
    echo Switching device !DEVICE_ID! to TCP/IP 5555...
    "%ADB%" -s "%DEVICE_ID%" tcpip 5555
    "%ADB%" connect "%PHONE_IP%:5555"
    goto RUN_SCRCPY

    :RUN_SCRCPY
    :: Launch scrcpy in a detached process so the console can be killed
    :: v1p4 Divorced the console from the mirrored image and vice versa
    :: start "" /B scrcpy.exe --tcpip=%PHONE_IP% %SCRCPY_OPTS% >nul 2>&1
    echo Launching scrcpy...
    start "" scrcpy.exe --tcpip=%PHONE_IP% %SCRCPY_OPTS% >nul 2>&1
    echo(
    exit /b

    REM end of adbconnect.bat
    --
    On Usenet, many say you're wrong but few back it up with what's right.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to alt.comp.os.windows-11,alt.msdos.batch,alt.comp.microsoft.windows on Mon Jun 15 14:20:25 2026
    From Newsgroup: alt.comp.os.windows-11

    If something takes 20 steps, we reduce it in half, and if it takes 2 steps,
    we still reduce it in half, until everything we do, is a single quick step.

    To that end, I've updated the adbconnect.bat so that it handles any IP address, any set of ports & any password prompt which ADB over Wi-Fi needs.

    In addition, I was able to figure out a way to eliminate the scrcpy
    console, where I had been using Herbert Kleebauer's ShowWin() previously.

    The script below answers two questions anyone would have, which are:
    Q: How do we connect desktop adb to Android Wi-Fi in the shortest steps?
    Q: How to we mirror Android onto the desktop without an open console?

    Both issues are solved below, but, as always, please test and let me know where/if I err or where/if I've omitted something that is critical to know.

    :: adbconnect.bat
    :: No-USB, Wi-Fi only, adb/scrcpy static IP and static 5555 port connect
    :: v1p7 20260615
    :: Removed the requirement for the "no-console" vbs script
    :: by injecting the necessary commands into a temporary file
    :: This is the cleanest way I can think of to eliminate the console.
    :: v1p6 20260614
    :: Called the vbs "no-console" script that comes with adb.
    :: If the script isn't there, then it defaults to the old method.
    :: The problem is getting completely rid of the scrcpy console isn't working.
    :: These are the known scrcpy console-hiding methods:
    :: (a) cmd /c start "" /min (minimizes the console)
    :: The console is not hidden. It's just minimized.
    :: (b) cmd start "" /B (background launch of detached console)
    :: This detaches scrcpy from the batch console
    :: (c) adb default VBS no-console wrapper (fully hidden window)
    :: Default GUI-subsystem scrcpy launch (so no console is created)
    :: CreateObject("Wscript.Shell").Run strCommand, 0, False
    :: (d) Kleebauer ShowWindow() controller trick to hide the batch console
    :: showwin.exe 0 SW_HIDE (Hides the batch console)
    :: (e) Powershell ShowWindowAsync (similar idea to Herbert's ShowWindow()
    :: Add-Type '[DllImport("user32.dll")]
    :: public static extern bool
    :: ShowWindowAsync(IntPtr hWnd, int nCmdShow);'
    :: Here is the original scrcpy-noconsole.vbs that comes with adb
    :: strCommand = "cmd /c scrcpy.exe"
    :: For Each Arg In WScript.Arguments
    :: strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
    :: Next
    :: CreateObject("Wscript.Shell").Run strCommand, 0, false
    :: v1p5 20260613 Added query asking for the LAN IP address of the phone
    :: Reordered comments to allow the current version to be obvious
    :: v1p4 20260612 minimized the scrcpy console (but it's still there)
    :: using cmd /c start "" /min (minimizes the console only)
    :: The only known choices are
    :: (a) Minimized console-subsystem launch (cmd /c start "" /min)
    :: (b) Background detached launch (start "" /B)
    :: (c) Hidden GUI-subsystem VBS launcher (no console created)
    :: (d) External ShowWindow() console-visibility controller (Kleebauer trick)
    :: (e) PowerShell ShowWindowAsync console hider (similar to ShowWindow())
    :: v1p3 20260612 moved the pipe outside the FOR command for reliability
    :: v1p2 20260611 further reliability improvements added to v1p1
    :: Use separate retry counters for pair/connect to avoid loop
    :: interference (ATTEMPTS_PAIR, ATTEMPTS_CONN)
    :: Added fail-fast with clear error codes and user hints after retry
    :: exhaustion
    :: Added a detection of the device id after initial connect
    :: (handles ephemeral adb ports like 192.168.1.4:54321)
    :: Use DEVICE_ID for subsequent -s tcpip command (quoted)
    :: to avoid parsing issues with colons
    :: Fallback device-id lookup when initial pattern match fails
    :: (robust parsing of "adb devices")
    :: Consistent quoting of %ADB% and device identifiers to avoid
    :: CMD parsing errors
    :: v1p1 20260611 reliability improvements added to v1p0
    :: Added better device lookup (skip header,ignore blanks,avoid false matches)
    :: Added retry logic for adb pair & adb connect (for when phone not ready)
    :: Improved polish (consistent quoting, stable scrcpy launch)
    :: v1p0 20260611 converted adbconnect.vbs to adbconnect.bat
    :: Connects desktop & phone over adb & mirrors phone on the monitor
    :: No USB cord is used in this process as it's all done over Wi-Fi
    :: Should work even if either the PC and/or the phone is rebooted
    :: The script will ask only for the minimum amount of data needed
    :: Change the phone static IP address as needed to fit your LAN IP address
    @echo off
    setlocal enabledelayedexpansion
    :: For phones with static IP addresses, change the next line
    set PHONE_IP=192.168.1.4
    set SCRCPY_OPTS=--keyboard=sdk --always-on-top

    echo.
    echo === ADB Wireless Auto-Connect ===
    echo === [Developer options > Wireless debugging > on] ===
    echo.

    REM 1. Find adb
    for /f "delims=" %%A in ('where adb 2^>nul') do (
    if not defined ADB set ADB=%%A
    )

    if not defined ADB (
    echo [ERROR] adb.exe not found.
    exit /b
    )

    REM Ensure .exe extension
    if /i not "%ADB:~-4%"==".exe" set ADB=%ADB%.exe

    echo Using ADB: "%ADB%"
    echo.

    REM 2. Check if already connected
    echo Checking existing ADB devices...

    REM v1p1 fixed device lookup:
    REM a. skip header line
    REM b. ignore blank lines
    REM c. only process lines containing digits
    REM d. avoid CMD parser bugs by NOT piping inside the FOR command
    REM v1p3 moved pipe OUTSIDE the for loop
    :: for /f "skip=1 tokens=1" %%D in ('"%ADB%" devices') do (

    set DEVICE_ID=
    for /f "skip=1 tokens=1" %%I in ('"%ADB%" devices') do (
    echo %%I | findstr /R "[0-9]" >nul && (
    echo %%I | findstr /I "%PHONE_IP%" >nul && (
    if not defined DEVICE_ID set DEVICE_ID=%%I
    )
    )
    )

    if defined DEVICE_ID (
    echo Already connected on %DEVICE_ID%
    goto RUN_TCPIP
    )

    echo %%D | findstr /R "[0-9]" >nul && (
    echo %%D | findstr /i "%PHONE_IP%" >nul && (
    echo Already connected on %%D
    set DEVICE_ID=%%D
    goto RUN_TCPIP
    )
    )
    )

    echo Not connected. Need to pair.
    echo.

    REM 3. Ask user for pairing info
    echo Necessary pairing information will be shown on the phone:
    set /p PHONE_IP=Phone IP [%PHONE_IP%] :
    set /p PAIR_PORT=Wireless debugging pairing port (e.g., 333123 on phone):
    set /p PAIR_CODE=Wireless debugging pairing code (e.g., 555123 on phone):
    set /p DEBUG_PORT=Wireless debugging debug port (e.g., 444123 on phone):

    echo.
    echo Pairing with: %PHONE_IP%:%PAIR_PORT%

    REM Retry logic for adb pair (3 attempts)
    set ATTEMPTS_PAIR=0
    :PAIR_RETRY
    set /a ATTEMPTS_PAIR+=1
    "%ADB%" pair %PHONE_IP%:%PAIR_PORT% %PAIR_CODE%
    if errorlevel 1 (
    if !ATTEMPTS_PAIR! lss 3 (
    echo Pair failed, retrying...
    timeout /t 2 >nul
    goto PAIR_RETRY
    ) else (
    echo [ERROR] adb pair failed after %ATTEMPTS_PAIR% attempts.
    echo Hint: Open Wireless debugging -> "Pair device with pairing code" on the phone, then re-run this script.
    exit /b 1
    )
    )
    echo.

    echo Connecting to debug port: %PHONE_IP%:%DEBUG_PORT%

    REM Retry logic for adb connect (3 attempts)
    set ATTEMPTS_CONN=0
    :CONNECT_RETRY
    set /a ATTEMPTS_CONN+=1
    "%ADB%" connect %PHONE_IP%:%DEBUG_PORT%
    if errorlevel 1 (
    if !ATTEMPTS_CONN! lss 3 (
    echo Connect failed, retrying...
    timeout /t 2 >nul
    goto CONNECT_RETRY
    ) else (
    echo [ERROR] adb connect %PHONE_IP%:%DEBUG_PORT% failed after %ATTEMPTS_CONN% attempts.
    echo Hint: Ensure phone is on the same Wi-Fi and Wireless debugging pairing UI is active.
    exit /b 2
    )
    )
    echo.

    REM After connect, get the actual device id reported by adb (handles ephemeral ports)
    set DEVICE_ID=
    for /f "tokens=1" %%I in ('"%ADB%" devices ^| findstr /R /C:"%PHONE_IP%[: ]"') do (
    if not defined DEVICE_ID set DEVICE_ID=%%I
    )

    if not defined DEVICE_ID (
    REM fallback: try to find any non-empty device id line
    for /f "skip=1 tokens=1" %%I in ('"%ADB%" devices') do (
    echo %%I | findstr /R "[0-9]" >nul && if not defined DEVICE_ID set DEVICE_ID=%%I
    )
    )

    if defined DEVICE_ID (
    echo Found device id: "%DEVICE_ID%"
    ) else (
    echo [WARN] No device id found after connect. Continuing using %PHONE_IP%:%DEBUG_PORT% for tcpip attempt.
    set DEVICE_ID=%PHONE_IP%:%DEBUG_PORT%
    )

    echo Switching to TCP/IP 5555...
    "%ADB%" -s "%DEVICE_ID%" tcpip 5555
    echo.

    echo Connecting final port: %PHONE_IP%:5555
    "%ADB%" connect %PHONE_IP%:5555
    echo.

    set DEVICE_ID=%PHONE_IP%:5555
    goto RUN_SCRCPY

    :RUN_TCPIP
    echo Switching device !DEVICE_ID! to TCP/IP 5555...
    "%ADB%" -s "%DEVICE_ID%" tcpip 5555
    "%ADB%" connect "%PHONE_IP%:5555"
    goto RUN_SCRCPY

    :: Removed in v1p6 versions and up
    :: :RUN_SCRCPY
    :: Launch scrcpy in a detached process so the console can be killed
    :: v1p4 Divorced the console from the mirrored image and vice versa
    :: start "" /B scrcpy.exe --tcpip=%PHONE_IP% %SCRCPY_OPTS% >nul 2>&1
    :: echo Launching scrcpy...
    :: start "" scrcpy.exe --tcpip=%PHONE_IP% %SCRCPY_OPTS% >nul 2>&1
    :: echo(
    :: exit /b

    :: Calling the default adb scrcpy-noconsole.vbs script in v1p6
    :: :RUN_SCRCPY
    :: echo Launching scrcpy silently...
    :: :: Target the official adb VBS wrapper instead of the raw .exe
    :: if exist "scrcpy-noconsole.vbs" (
    :: wscript.exe "scrcpy-noconsole.vbs" --tcpip=%PHONE_IP% %SCRCPY_OPTS%
    :: ) else (
    :: :: Fallback just in case the file isn't in the same directory
    :: start "" /B scrcpy.exe --tcpip=%PHONE_IP% %SCRCPY_OPTS% >nul 2>&1
    :: )
    :: echo(
    :: exit /b

    :: v1p7 Inject temporary file instead of calling existing no-console vbs
    :RUN_SCRCPY
    echo Launching scrcpy completely silent...

    set "VBS_TEMP=%TEMP%\scrcpy_runner.vbs"

    :: Build the standalone VBS command string directly into the temp file
    echo strCommand = "cmd /c scrcpy.exe --tcpip=%PHONE_IP% %SCRCPY_OPTS%" > "%VBS_TEMP%"
    echo CreateObject("Wscript.Shell").Run strCommand, 0, false >> "%VBS_TEMP%"

    :: Execute the temporary VBS script
    wscript.exe "%VBS_TEMP%"

    :: Brief pause to ensure script allocation completes before cleaning up the temp file
    timeout /t 1 >nul
    if exist "%VBS_TEMP%" del "%VBS_TEMP%"

    echo Done.
    exit /b

    REM end of adbconnect.bat
    --
    My conversations are deep because they cover more detail than most do.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to alt.comp.os.windows-11,alt.msdos.batch,alt.comp.microsoft.windows on Mon Jun 15 14:31:52 2026
    From Newsgroup: alt.comp.os.windows-11

    Maria Sophia wrote:
    In addition, I was able to figure out a way to eliminate the scrcpy
    console, where I had been using Herbert Kleebauer's ShowWin() previously.

    In case folks have forgotten, this is the venerable ShowWin() solution
    which Herbert Kleebaurer kindly provided many years ago & which works well.

    I used Herbert's method until I realized there was a default "no-console" method for launching scrcpy, where the difference in the two methods are
    a. The ShowWin() method flashes and then hides the console from view
    b. The VBS no-console method launches scrcpy without a console window

    For the record, here's Herbert's ShowWin() method which has worked for
    years where this is the version I used with USB (before adb Wi-Fi).

    @echo off
    REM
    REM Download screencopy onto your PC <https://scrcpy.org/>
    REM Set Android "Developer Options" "USB debugging = On"
    REM Then plug the Android phone into the USB port of Windows
    REM Then run "scrcpy -s SERIALNUMBER" on the Win/Mac/Linux PC
    REM This will mirror Android onto your Win/Mac/Linux PC
    REM But scrcpy leaves an annoying console behind, by default
    REM The entire point of this script is to run that one command
    REM But WITHOUT leaving an empty console behind on Windows.
    REM
    REM C:\app\editor\android\scrcpy\showwin.bat
    REM adb mdns services
    REM List of discovered mdns services
    REM netstat -ano -p tcp | findstr "192.168.1.3"
    REM TCP 192.168.1.2:15919 192.168.1.3:41913 ESTABLISHED 7904
    REM
    cd /d "c:\app\editor\android\scrcpy"
    REM embedded certificate block is an executable encoded within the batch file!
    REM Extract embedded executable from script using certutil decode
    REM Reads the batch file itself (%~f0) as encoded source content
    REM Decodes certificate block at the bottom and writes showwin.exe
    REM -f forces overwrite if showwin.exe already exists
    REM Output is suppressed using >nul to keep console clean
    REM showwin.exe is used to hide the console window temporarily
    REM The batch file launches scrcpy to mirror your phone.
    REM Normally, this leaves a blank console window hanging open.
    REM The command showwin.exe 0 is run right after launching scrcpy.
    REM This executable finds the console window and hides it from view.
    REM When you're done and close scrcpy, the script runs showwin.exe 5
    REM which makes the console visible again briefly to clean up.
    REM Showwin searches for the window with the class "ConsoleWindowClass"
    REM (that's how Windows identifies command windows).
    REM Uses a system call (like ShowWindow() in Win32 API) to make it invisible.
    REM It doesn't actually kill or close the window.
    REM It just makes it vanish visually while scrcpy runs
    REM So youAre left with a clean screen showing only your mirrored phone.
    certutil -f -decode %~f0 showwin.exe>nul
    REM Port 5555 was needed when you established adb connections over USB
    REM And then you disconnected the USB cable to subsequently work on Wi-Fi
    REM But as of Android 11 or 12, you can establish the connection over Wi-Fi
    REM But that "Developer option" "Wireless debugging" port is assigned by Android!
    REM So you have to get it on Android or on Windows to know what it is
    REM adb connect 192.168.1.3:5555
    REM You can get the current port from the following command
    REM c:\> netstat -ano -p tcp | findstr "192.168.1.3"
    REM
    REM maybe we do NOT need this command after all???
    REM adb connect 192.168.1.3:41913
    REM
    :: now we hide console window
    showwin.exe 0
    REM
    REM scrcpy --always-on-top --tcpip=192.168.1.3:5555
    REM Maybe we can then remove the IP:PORT after all???
    REM scrcpy --always-on-top --tcpip=192.168.1.3:41913
    REM We don't really need --always-on-top after all???
    REM scrcpy --always-on-top
    REM scrcpy
    REM scrcpy -s adb-SERIAL_adb-tls-connect._tcp.
    REM scrcpy -s 192.168.1.21
    REM scrcpy -s SERIAL
    REM scrcpy -s SERIAL -K is dangerous to Android
    REM scrcpy -s SERIAL --keyboard=sdk is less dangerous
    REM scrcpy --prefer-text
    REM
    scrcpy -s RFCT21AMDZE --keyboard=sdk
    :: after scrcpy is closed we show console window again
    :: scrcpy-noconsole.vbs
    :: start "" /b scrcpy -s SERIAL -K.
    :: scrcpy -s SERIAL -K --mouse-bind=++++
    showwin.exe 5
    REM
    del showwin.exe
    goto :eof
    REM
    -----BEGIN CERTIFICATE-----
    TVpgAQEAAAAEAAAA//8AAGABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAoAAAAA4fug4AtAnNIbgBTM0hTmljZSB0byBtZWV0IHNvbWVi
    b2R5IHdobyBpcyBzdGlsbCB1c2luZyBET1MsDQpidXQgdGhpcyBwcm9ncmFtIHJl
    cXVpcmVzIFdpbjMyLg0KJFBFAABMAQEAUHmlNgAAAAAAAAAA4AAPAQsBBQwAAgAA
    AAAAAAAAAADIEAAAABAAAAAgAAAAAEAAABAAAAACAAAFAAAAAAAAAAQAAAAAAAAA
    ACAAAAACAAAAAAAAAwAAAAAAEAAAEAAAAAAQAAAQAAAAAAAAEAAAAAAAAAAAAAAA
    GBAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAYAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALnRleHQAAAAmAQAAABAAAAACAAAAAgAA
    AAAAAAAAAAAAAAAAIAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABoEAAAAAAAAJQQAACmEAAA
    uhAAAAAAAABgEAAAAAAAAAAAAABUEAAAABAAAIQQAAAAAAAAAAAAAHYQAAAIEAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAABVU0VSMzIuZGxsAABoEAAAAAAAAAAAU2hvd1dp
    bmRvdwAAS0VSTkVMMzIuZGxsAACUEAAAphAAALoQAAAAAAAAAABHZXRDb21tYW5k
    TGluZUEAAABHZXRDb25zb2xlV2luZG93AAAAAEV4aXRQcm9jZXNzAP8VCBBAADHS
    SECAOAB0EYA4InUC99IJ0nXvgDggdepAMfa9BQAAAA+2EEAI0nQTgOowcvOA+gl3
    7mv2CgHWMe3r5QntdAKJ7v8VDBBAAFZQ/xUAEEAAagD/FRAQQAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAA==
    -----END CERTIFICATE-----
    --
    If something takes 20 steps, we reduce it in half, and if it takes 2 steps,
    we still reduce it in half, until everything we do, is a single quick step.
    --- Synchronet 3.22a-Linux NewsLink 1.2