![]() |
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-08-11 09:42 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » This is the content of a batch file, please give guidance. |
| Printable Version 2,876 / 3 |
| Floor1 copy114 | Posted 2002-11-11 00:00 |
| 初级用户 Posts 37 Credits 229 | |
|
:w_rec4 " Ghost Recovery Wizard "
Ready ========== Now ready to restore partition %P% from %gfile% to partition %N% of hard disk %M% on this computer! Before this, please make sure that the files in partition %N% of hard disk %M% have been backed up! Once the recovery starts, all data in this partition will be overwritten and cannot be recovered! Please enter uppercase OK and press the button to start the recovery, otherwise press the button to return. :: :ghost call quit cls ghost goto end :exit call quit cls :end set isOK= set gfile= set gname= set gsize= set gzip= set gpath= set m= set n= set p= set ?= set wbat= if exist %temp%\tmp.txt del %temp%\tmp.txt This is a batch file writing the backup wizard for Ghost. The file requires entering uppercase OK and then pressing OK to perform the recovery. If I want to remove the function of that uppercase OK and make it directly press OK to start the recovery, how should I modify it? Please give me advice,,, can you provide the entire source code? |
|
| Floor2 柯宇 | Posted 2002-11-12 00:00 |
| 初级用户 Posts 2 Credits 108 | |
|
It should be that removing "" will be okay. It just gives an input field. I tried it, and it's the same whether I input or not, and the case is the same. If you want uppercase, you must add the U parameter, and if you must input, you need to add the! parameter.
|
|
| Floor3 copy114 | Posted 2002-11-13 00:00 |
| 初级用户 Posts 37 Credits 229 | |
|
No, no! It doesn't work. If you don't enter the uppercase OK, it won't work. I've tried it.
|
|
| Floor4 jingyu9575 | Posted 2009-01-20 14:27 |
| 新手上路 Posts 6 Credits 7 | |
|
First, try setting isOK=OK
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |