联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off choice /c:dme defrag,mem,end if errorlevel 3 goto defrag if errorlevel 2 goto mem if errotlevel 1 goto end :defrag c:\dos\defrag goto end :mem mem goto end :end echo good bye
@echo off cls set input= :_loop echo ======== Menu ======= echo d. defrag echo m. mem echo e. end echo =================== set /p input=Please make your choice(d/m/e): if /i [%input%]==[d] goto _defrag if /i [%input%]==[m] goto _mem if /i [%input%]==[e] goto _end goto _loop :_defrag ... goto _end :_mem ... goto _end :_end ...
Originally posted by Climbing at 2007-8-21 05:29 PM: [code] @echo off cls set input= :_loop echo ======== Menu ======= echo d. defrag echo m. mem echo e. end echo =================== set /p input=Please make your ch ...