![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-25 04:54 |
47,813 topics / 349,918 posts / today 1 new / 48,274 members |
| DOS批处理 & 脚本技术(批处理室) » 请问这个带有选择项的批处理是怎么样实现的 请问这个带有选择项的批处理是怎么样实现的 请问这个带有选择项的批处理是怎么样实现的 What is the way to implement this batch processing with options? What is the way to implement this batch processing with options? What is the way to implement this batch processing with options? |
| Printable Version 4,190 / 35 |
| Floor31 fastslz | Posted 2006-11-03 08:03 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
It seems that everyone has confused. The building owner should be talking about pure DOS mode. The building owner can switch to Wbat 2.50, which is universal for DOS and XP, but it just doesn't support the 936 code page.
http://home.mnet-online.de/horst.muc/ |
|
| Floor32 qingyangecho | Posted 2006-11-03 10:08 |
| 初级用户 Posts 40 Credits 97 | |
|
Thanks to everyone above. Passed safely. Deleted some parameters and changed some variables, don't know why.
CHOICE.com /C:1234 IF ERRORLEVEL 1 GOTO RESTORE IF ERRORLEVEL 2 GOTO SUPPRESS IF ERRORLEVEL 3 GOTO DISABLE IF ERRORLEVEL 4 GOTO restort |
|
| Floor33 fastslz | Posted 2006-11-03 11:09 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
It's really strange. I've always used the parameters IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2, with the numbers arranged from small to large. The code above should be from large to small.
CHOICE.com /C:1234 IF ERRORLEVEL 4 GOTO RESTORE IF ERRORLEVEL 3 GOTO SUPPRESS IF ERRORLEVEL 2 GOTO DISABLE IF ERRORLEVEL 1 GOTO restort |
|
| Floor34 qingyangecho | Posted 2006-11-03 13:14 |
| 初级用户 Posts 40 Credits 97 | |
|
At the very beginning, I also arranged them from largest to smallest, but there was an error in the VM. It gives two to three and three to two (I deliberately added an extra pause and a number in each command group of the batch file on the 20th floor just to see this). From smallest to largest, it gives as many as needed. I can only collect all the software in two days and then burn it to a disc to test on the actual machine to confirm.
|
|
| Floor35 ljs3509 | Posted 2006-11-04 03:34 |
| 初级用户 Posts 14 Credits 28 | |
Originally posted by lxmxn at 2006-11-3 06:23: Thanks for the correction. This was copied from the XP Help and Support Center. I didn't look too closely |
|
| Floor36 wjh800 | Posted 2007-04-24 02:23 |
| 新手上路 Posts 5 Credits 9 From 郑州 | |
|
Learning
|
|
| Prev 1 2 3 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |