标题: 怎样在启动盘上使用choice??
[打印本页]
作者: king12345678
时间: 2002-12-8 00:00
标题: 怎样在启动盘上使用choice??
做了一个测试,不能使用choice,我已经把choice命令复制到启动盘目录了,请问还需要什么其它附件吗?为什么不能使用?
错误现象是不能选择。
作者: Wengier
时间: 2002-12-8 00:00
不需要其它的附件,但需要将PATH指向CHOICE的路径,例如:PATH A:\
作者: Microng
时间: 2002-12-9 00:00
read it ,you will get it !
))))))))))))
@echo off
echo welcome to do copy

echo (y):do copy
echo (n):not to do copy
choice /n /c:yn please select y,n!
if errorlevel 2 goto n
if errorlevel 1 goto y
:n
goto endl
:y
echo you will do copy..
echo (a): copy C:\windows\command\*.* D:\dos\.
echo (b): copy C:\windows\command\*.* e:\dos\.
echo (c): copy C:\windows\command\*.* f:\dos\.
choice /n /c:abc please select the motion of copy!
if errorlevel 3 goto c
if errorlevel 2 goto b
if errorlevel 1 goto a
:c
md D:\dos\.
copy C:\windows\command\*.* D:\dos\.
goto endl
:b
md e:\dos\.
copy C:\windows\command\*.* e:\dos\.
goto endl
:a
md f:\dos\.
copy C:\windows\command\*.* f:\dos\.
goto endl
:endl
echo think you use it

goto end
:end
作者: king12345678
时间: 2002-12-9 00:00
谢谢大家的帮助,没问题了,我这里出问题原因是在Virtual PC虚拟中不能正常使用,后来我刻成光盘后实际使用没有问题了!
谢谢Wengier
谢谢Microng
作者: tasmzz
时间: 2009-4-3 22:39
在虚拟机里安装dos7.1 这后,就能用了,注意先要分区,并设为主要为区