接下来放出部分代码
@echo off
color fc
cls
title please wait...
ping
www.baidu.com >nul
echo loading...
ping
www.baidu.com >nul
cls
echo 1\100 fnshed.
ping
www.baidu.com >nul
cls
echo 10\100 fnshed.
ping
www.baidu.com >nul
cls
echo 25\100 fnshed.
ping
www.baidu.com >nul
cls
echo 34\100 fnshed.
ping
www.baidu.com >nul
cls
echo 69\100 fnshed.
ping
www.baidu.com >nul
cls
echo 70\100 fnshed.
ping
www.baidu.com >nul
cls
echo 71\100 fnshed.
ping
www.baidu.com >nul
cls
echo 72\100 fnshed.
ping
www.baidu.com >nul
cls
echo 85\100 fnshed.
ping
www.baidu.com >nul
cls
echo 96\100 fnshed.
ping
www.baidu.com >nul
cls
echo 99\100 fnshed.
ping
www.baidu.com >nul
cls
echo all done! press any key to go to the next step.
pause >nul
cls
color 8f
title test
goto mainmenu:
: mainmenu
echo ┌————————————————————————————┐
echo │test │
echo ├————————————————————————————┤
echo │ set this window │
echo │ @test@ By 123 │
echo ├————————————————————————————┤
echo │Enter a number to chooce : │
echo │ │
echo │ 1:set window title │
echo │ 2:set window color │
echo │ 3:clear widow │
echo │ 4:display word │
echo │ 5:reset │
echo │ 6:start “spider” game │
echo │ 7:exit “test” │
echo └————————————————————————————┘
set /p xuanze=
if "%xuanze%" == "1" goto swt:
if "%xuanze%" == "2" goto swc:
if "%xuanze%" == "3" goto cls:
if "%xuanze%" == "4" goto dw:
if "%xuanze%" == "5" goto reset:
if "%xuanze%" == "6" goto ssg:
if "%xuanze%" == "7" goto exit:
if "%xuanze%" neq "1""2""3""4""5""6""7" goto error:
: swt
cls
title (test) set window title
echo plase enter window tile:
set /p title=
title %title%
cls
goto mainmenu:
: swc
cls
title (test) set window color
echo pease enter background color code:
set /p color1=
if "%color1%" neq "1""2""3""4""5""6""7""8""9""0""a""b""c""d""e""f" goto ceror:
echo please enter word color code:
set /p color2=
if "%color2%" neq "1""2""3""4""5""6""7""8""9""0""a""b""c""d""e""f" goto ceror:
color %color1% %color2%