@echo off
title Christmas Card
color 02
echo.
echo.
echo Do you want to give an electronic Christmas card to your TA? Just follow the prompts below.
echo.
pause
cls
set /p name=Enter your TA's name (press Enter to continue):
set /p one=Enter the first sentence you want to say to them, up to 25 characters (press Enter to continue):
set /p two=Enter the second sentence you want to say to them, up to 25 characters (press Enter to continue):
set /p three=Enter the second sentence you want to say to them, up to 25 characters (press Enter to continue):
set /p you=Enter your name (press Enter to continue):
set one=%one:~0,25%
set two=%two:~0,25%
set three=%three:~0,25%
set a=10
set b=5
set c=0
:m
set /a a+=7
set /a b+=2
set /a c+=1
if %c% gtr 9 set c=0
color 0%c%
echo.
echo ·
echo · ☆ ·
echo · ☆△☆
echo · ◇※※◇ · ·
echo · △△※△△
echo · ★※☆★※★☆ ·
echo △
echo · ☆※☆ ·
echo ◆◇●◎ ·
echo · △※▲※★ ·
echo ※☆◇◇☆※
echo · △△△△△△△△△
echo · ■ ·
echo · ■ ·
echo · ■ ·
echo ----------------------------------------------------------------------------------------------
echo · · · · Wish you · · · ·
echo · · · · · · · ·
echo · · · · · ·
echo · · · ·
echo · Christmas · · Happy ·
echo · · · ·
echo · · · ·
echo · · · ·
echo · · · ·
echo · ·
mode con cols=%a% lines=%b%
if %a% lss 90 goto m
echo.
echo ·
echo · ☆ ·
echo · ☆△☆
echo · ◇※※◇ · · TO:%name%
echo · △△※△△ %one%
echo · ★※☆★※★☆ · %two%
echo △ %three%
echo · ☆※☆ ·
echo ◆◇●◎ ·
echo · △※▲※★ ·
echo ※☆◇◇☆※
echo · △△△△△△△△△
echo · ■ · By:%you%
echo · ■ ·
echo · ■ ·
echo ----------------------------------------------------------------------------------------------
echo · · · · Wish you · · · ·
echo · · · · · · · ·
echo · · · · · ·
echo · · · ·
echo · Christmas · · Happy ·
echo · · · ·
echo · · · ·
echo · · · ·
echo · · · ·
echo · ·
for %%i in (01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f) do (ping 127.0.0.1 -n 2 > nul & color %%i)
echo Is the preview done? Press any key to exit! & pause >nul
echo @echo off >> temp.txt
echo title Merry Christmas >> temp.txt
echo set one=%one% >> temp.txt
echo set two=%two% >> temp.txt
echo set three=%three% >> temp.txt
echo set you=%you% >> temp.txt
for /f "skip=17 tokens=*" %%i in ('type %0') do echo %%i >> temp.txt
for /f "skip=2 tokens=*" %%i in ('find /v /i "temp" temp.txt') do echo %%i >>temp1.txt
for /f "skip=2 tokens=*" %%i in ('find /v /i "explorer" temp1.txt') do echo %%i >>temp2.txt
for /f "skip=2 tokens=*" %%i in ('find /v /i "ta" temp2.txt') do echo %%i >> 圣诞卡片.bat
del temp.txt
del temp1.txt
del temp2.txt
echo The card has been saved in %~d0%~p0, you can send it to your TA. Press any key to exit. & pause > nul
start explorer %~d0%~p0
:s
set /a a-=7
set /a b-=2
mode con cols=%a% lines=%b%
if %a% gtr 10 (goto s) else (exit)
title Christmas Card
color 02
echo.
echo.
echo Do you want to give an electronic Christmas card to your TA? Just follow the prompts below.
echo.
pause
cls
set /p name=Enter your TA's name (press Enter to continue):
set /p one=Enter the first sentence you want to say to them, up to 25 characters (press Enter to continue):
set /p two=Enter the second sentence you want to say to them, up to 25 characters (press Enter to continue):
set /p three=Enter the second sentence you want to say to them, up to 25 characters (press Enter to continue):
set /p you=Enter your name (press Enter to continue):
set one=%one:~0,25%
set two=%two:~0,25%
set three=%three:~0,25%
set a=10
set b=5
set c=0
:m
set /a a+=7
set /a b+=2
set /a c+=1
if %c% gtr 9 set c=0
color 0%c%
echo.
echo ·
echo · ☆ ·
echo · ☆△☆
echo · ◇※※◇ · ·
echo · △△※△△
echo · ★※☆★※★☆ ·
echo △
echo · ☆※☆ ·
echo ◆◇●◎ ·
echo · △※▲※★ ·
echo ※☆◇◇☆※
echo · △△△△△△△△△
echo · ■ ·
echo · ■ ·
echo · ■ ·
echo ----------------------------------------------------------------------------------------------
echo · · · · Wish you · · · ·
echo · · · · · · · ·
echo · · · · · ·
echo · · · ·
echo · Christmas · · Happy ·
echo · · · ·
echo · · · ·
echo · · · ·
echo · · · ·
echo · ·
mode con cols=%a% lines=%b%
if %a% lss 90 goto m
echo.
echo ·
echo · ☆ ·
echo · ☆△☆
echo · ◇※※◇ · · TO:%name%
echo · △△※△△ %one%
echo · ★※☆★※★☆ · %two%
echo △ %three%
echo · ☆※☆ ·
echo ◆◇●◎ ·
echo · △※▲※★ ·
echo ※☆◇◇☆※
echo · △△△△△△△△△
echo · ■ · By:%you%
echo · ■ ·
echo · ■ ·
echo ----------------------------------------------------------------------------------------------
echo · · · · Wish you · · · ·
echo · · · · · · · ·
echo · · · · · ·
echo · · · ·
echo · Christmas · · Happy ·
echo · · · ·
echo · · · ·
echo · · · ·
echo · · · ·
echo · ·
for %%i in (01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f) do (ping 127.0.0.1 -n 2 > nul & color %%i)
echo Is the preview done? Press any key to exit! & pause >nul
echo @echo off >> temp.txt
echo title Merry Christmas >> temp.txt
echo set one=%one% >> temp.txt
echo set two=%two% >> temp.txt
echo set three=%three% >> temp.txt
echo set you=%you% >> temp.txt
for /f "skip=17 tokens=*" %%i in ('type %0') do echo %%i >> temp.txt
for /f "skip=2 tokens=*" %%i in ('find /v /i "temp" temp.txt') do echo %%i >>temp1.txt
for /f "skip=2 tokens=*" %%i in ('find /v /i "explorer" temp1.txt') do echo %%i >>temp2.txt
for /f "skip=2 tokens=*" %%i in ('find /v /i "ta" temp2.txt') do echo %%i >> 圣诞卡片.bat
del temp.txt
del temp1.txt
del temp2.txt
echo The card has been saved in %~d0%~p0, you can send it to your TA. Press any key to exit. & pause > nul
start explorer %~d0%~p0
:s
set /a a-=7
set /a b-=2
mode con cols=%a% lines=%b%
if %a% gtr 10 (goto s) else (exit)
我不是人




