Created
March 11, 2026 14:20
-
-
Save n1ckfg/79c001043d83497277d9bcc922fb57a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set PORT=8080 | |
| :findport | |
| netstat -ano | findstr ":%PORT% " | findstr "LISTENING" >nul 2>&1 | |
| if %errorlevel%==0 ( | |
| set /a PORT+=1 | |
| goto findport | |
| ) | |
| start http://127.0.0.1:%PORT% | |
| http-server -p %PORT% | |
| @pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment