![]() |
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-19 00:38 |
47,814 topics / 349,908 posts / today 1 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » You mentioned content seems a bit incomplete. If it's "ghost前要求输入密码" which can be translated as "The password is required before using Ghost" |
| Printable Version 3,261 / 22 |
| Floor16 hdyue | Posted 2007-06-09 18:43 |
| 新手上路 Posts 8 Credits 18 | |
|
lianjiang2004, hello!
My code has been posted in two places <floor 1 and floor 7>. It's named 222.bat and placed in the root directory of drive C. After entering DOS and running 222, there's no password part appearing, and it directly executes the subsequent statements, that is, it directly displays welcome!. Do you mean that copying choice.exe to the root directory of drive C can make 222.bat execute completely? 222.bat: @echo off set choice= set /p choice= password: IF NOT "%Choice%"=="" SET Choice=%Choice:~0,1% if /i "%choice%"=="h" goto aa exit ::The following part replaces the GHOST command with parameters :aa echo welcome! pause |
|
| Floor17 lianjiang2004 | Posted 2007-06-09 18:51 |
| 金牌会员 Posts 1,884 Credits 3,946 | |
|
The reason for the error has been explained in the 3rd floor long ago. No repetition.
External commands need to be in the same path as the batch file. If you still can't understand, go to study DOS basics and make up the lessons by yourself. |
|
| Floor18 lianjiang2004 | Posted 2007-06-09 18:52 |
| 金牌会员 Posts 1,884 Credits 3,946 | |
|
If it's difficult to understand, it's suggested to use someone else's ready-made software. Learn it and then write it yourself.
|
|
| Floor19 hdyue | Posted 2007-06-12 00:17 |
| 新手上路 Posts 8 Credits 18 | |
|
The problem has been solved by myself. I used a piece of code written by maotao found online and modified it for use.
Thanks to maotao! And thanks to lianjiang2004 for the guidance! It's difficult to implement with choice, I searched for choice.com for a long time, and finally found it in the 98 compressed package, but didn't use it. |
|
| Floor20 lianjiang2004 | Posted 2007-06-12 06:20 |
| 金牌会员 Posts 1,884 Credits 3,946 | |
|
There is choice in the DOS boot disk, heh heh.
|
|
| Floor21 feelam | Posted 2007-08-06 23:08 |
| 初级用户 Posts 17 Credits 38 | |
Originally posted by hdyue at 2007-6-12 12:17 AM: Dude, since you solved the problem, why don't you post how you solved it? Come on ;) |
|
| Floor22 minchengan | Posted 2007-08-14 12:24 |
| 中级用户 Posts 164 Credits 376 | |
| Floor23 terse | Posted 2007-08-15 21:26 |
| 银牌会员 Posts 946 Credits 2,404 | |
|
Use the WBAT's reboot external command to reboot the machine
@echo off cls WBAT CLS (+cyan on black) :start set pass= call w.bat menu if errorlevel 100 goto end if %?%#==2# goto end if %pass%#==123# goto ghost goto start :ghost GHOST with parameter commands goto end :end reboot :: :menu "【DOS Boot Disk】"[x] =================================== Please enter password [$pass,5,p] [Continue(&E)] [?Cancel(&Q)] =================================== |
|
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |