goback add

简单的 批处理文件,却运行错误

5859 点击·4 回帖
acdekl
楼主
@each off
choice /c:tme
                 taskmgr,mem,end
if errorlevel 3 goto taskmgr
if errorlevel 2 goto mem
if errorlevel 1 goto end
:taskmgr
taskmgr.exe
 goto end
 :mem
 mem
 goto end
 :end
 each good by
帮忙看看

喜欢0 评分0
灯火互联
沙发
你检查一下你的 DOS 是否能正常输入命令 能正常显示 如果不能就要到 C:\WINDOWS\system32/cmd.exe这个系统盘直接打开DOS
你这是调出任务管理器吧 ,都是goto end程序跳到end标号处,然后显示good bye,最后批处理运行结束。

回复(0) 喜欢(0)     评分
acdekl
板凳
DOS能用,为什么choice 和if命令不执行

回复(0) 喜欢(0)     评分
灯火互联
地板
你什么系统 要是XP是不能用的 没的这个choice文件 是ya9o调用外部文件的,这个是以前的老式系统才有的。Window98  。没的就去下载一个这个choice.exe.

回复(0) 喜欢(0)     评分
acdekl
4楼
哦,是XP中不能用choice?

回复(0) 喜欢(0)     评分