| 
 | 
帮我看看,错在哪里?
你错在结构化上面,什么叫结构化,得学习学习Basic,要知道,老盖子对Basic是非常狂热滴,因此,在DOS中仅有的这么几个函数中,也必须遵循结构化,大致画个图,你自己看看 
              1-1    --------+ 
              2-1    ------+ | 
              3-1    ----+ | | 
              4-1    --+ | | | 
                       | | | | 
+--------    4-2    --+ | | | 
| +------    3-2    ----+ | | 
| | +----    2-2    ------+ | 
| | | +--    1-2    --------+ 
| | | | 
| | | +--    1-3 
| | +----    2-3 
| +------    3-3 
+--------    4-3 
这就是结构化,希望你能看明白,下面是我编的 
@echo off 
echo. 
echo           GHOST选择菜单 
echo           1、 ghost8 
echo           2、 netghost 
echo           3、 go to dos 
echo           4、 reboot 
choice /c:1234   
if errotlevel 4 goto reboot 
if errotlevel 3 goto gotodos 
if errorlevel 2 goto netghost  
if errorlevel 1 goto ghost8 
:ghost8 
ghost.exe 
goto end 
:netghost 
call nghost.bat 
goto end 
:gotodos 
goto end 
:reboot 
rb.com 
goto end 
:end 
看出来你的错误没有?除了结构化上面的错误,下面说说语法上面的错误 
第一处,echo:想用Echo留一行空白,不能直接输入Echo,否则屏幕上会显示当前Echo的状态,也就是在屏幕上显示Off,应该为Echo. 
第二处,go to dos:段号中间不可用空格,用go_to_dos、gotodos等都可,就是不能用空格 
第三处,nghost.bat:在批处理中调用其他批处理,不能直接输入filename.bat来执行,否则在执行完毕子批处理后不能返回继续执行母批处理,应该使用Call来调用子批处理 
第四处,goto end:你到处都有goto end的语句,但是你:end这一段呐?没有段号啊 
楼主的DOS水平需要加强,建议楼主到这个帖子去好好看一看: 
http://bbs.wuyou.net/cgi-bin/topic.cgi?forum=36&topic=233&show=0 |   
 
 
 
 |