-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebServer_pgzero_start.bat
More file actions
32 lines (32 loc) · 1000 Bytes
/
WebServer_pgzero_start.bat
File metadata and controls
32 lines (32 loc) · 1000 Bytes
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
26
27
28
29
30
31
32
@echo off
setlocal enabledelayedexpansion
rem Set the message to issue as second line
set "msg=* Starting *"
rem Calculate the length of the string
set Length=0
for /l %%A in (1,1,1000) do if "%msg%"=="!msg:~0,%%A!" (
set /a Length=%%A
goto :doit
)
:doit
rem Create a string of asterisks of same length
set header=
for /l %%i in (1,1,%Length%) do set "header=!header!*
color 02
title Web Server Server
:g
cls
echo.
powershell write-host -fore Cyan ______________________________Starting Web Server______________________________
powershell write-host -fore Cyan *******************************************************************************
timeout /t 1 >nul
echo.
php -S localhost:8000 -t .
echo.
echo.
timeout /t 1 >nul
powershell write-host -fore Cyan *******************************************************************************
powershell write-host -fore Red ______________________________Web Server Stopped______________________________
timeout /t 5
goto g
pause >nul