批处理做的记事本
bat吧
全部回复
仅看楼主
level 7
MQjehovah 楼主
批处理做的记事本。新学不久,也算我的最高水平了,不过还是不尽人意,大家帮忙优化一下。。。。。。。。。。。。
@echo off
title 记事本
color 2f
:restart
type nul>a.txt
:again
set /p str=
if %str%==" " goto af
echo %str%>>a.txt
goto again
:af
echo 1.保存
echo 2.继续
echo 3.退出
:b
set /p num=
if %num%==1 goto save
if %num%==2 goto again
if %num%==3 goto out
echo 输入错误
goto b
:save
echo 保存
echo 输入文件名
set /p name=
ren a.txt %name%
:c
set /p restart=重新开始?(y/n):
if %restart%==y goto restart
if %restart%==n goto end
echo 输入错误
goto c
:out
del a.txt
goto end
:end
exit
2010年12月03日 09点12分 1
level 3
不错,顶一个
2017年05月01日 02点05分 2
level 8
没啥用[狂汗]
不能换行诶
2017年05月01日 10点05分 3
1