Dateien nach „/“ hochladen
This commit is contained in:
commit
865f0956ad
4 changed files with 1404 additions and 0 deletions
24
start.bat
Normal file
24
start.bat
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@echo off
|
||||
setlocal
|
||||
|
||||
cd /d "%~dp0"
|
||||
set PORT=8000
|
||||
set URL=http://localhost:%PORT%/index.html
|
||||
|
||||
where py >nul 2>&1
|
||||
if %ERRORLEVEL%==0 (
|
||||
start "" "%URL%"
|
||||
py -3 -m http.server %PORT%
|
||||
goto :eof
|
||||
)
|
||||
|
||||
where python >nul 2>&1
|
||||
if %ERRORLEVEL%==0 (
|
||||
start "" "%URL%"
|
||||
python -m http.server %PORT%
|
||||
goto :eof
|
||||
)
|
||||
|
||||
echo Python was not found.
|
||||
echo Install Python 3 from https://www.python.org/downloads/ and try again.
|
||||
pause
|
||||
Loading…
Add table
Add a link
Reference in a new issue