|
hdyue
新手上路

积分 18
发帖 8
注册 2007-6-7
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
lianjiang2004,你好!
我的代码已经贴了两个了<1楼和7楼>。取名为222.bat放在C盘根目录下,进入DOS后运行222,都是不出现密码部分,直接执行后续语句,即直接显示welcome!。
你的意思是要把choice.exe也复制到C盘根目录下就能完整执行222.bat?
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
::以下部分代替GHOST带参数命令
:aa
echo welcome!
pause
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
|
|
2007-6-9 18:43 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
错误原因3楼早就讲过了。不再重复。
外部命令需与批处理在同一路径下。
还不能理解的话,自己看dos基础,补课吧。
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.
|

Windows 一键还原
http://www.yjhy.com |
|
2007-6-9 18:51 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
理解有难度的话,建议用别人现成的软件。学会后再自己写。
If it's difficult to understand, it's suggested to use someone else's ready-made software. Learn it and then write it yourself.
|

Windows 一键还原
http://www.yjhy.com |
|
2007-6-9 18:52 |
|
|
hdyue
新手上路

积分 18
发帖 8
注册 2007-6-7
状态 离线
|
『第 19 楼』:
问题已解决
使用 LLM 解释/回答一下
问题我自己已解决。用的是网上查找的 maotao 写的一段代码,修改后使用。
谢谢 maotao! 也谢谢 lianjiang2004 的指教!用 choice 难以实现,找choice.com也找得半死,最后从98压缩包里找出来,没用上。
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.
|
|
2007-6-12 00:17 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
|
2007-6-12 06:20 |
|
|
feelam
初级用户
 
积分 38
发帖 17
注册 2007-8-4
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
Originally posted by hdyue at 2007-6-12 12:17 AM:
问题我自己已解决。用的是网上查找的 maotao 写的一段代码,修改后使用。
谢谢 maotao! 也谢谢 lianjiang2004 的指教!用 choice 难以实现,找choice.com也找得半死,最后从98压缩包里找出来,没用上。
大哥 问题解决你倒是贴个如何解决的方法出来啊拜托;)
Originally posted by hdyue at 2007-6-12 12:17 AM:
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! Also thanks to lianjiang2004 for the guidance! It was difficult to implement with choice, and I searched for choice.com in vain. Finally, I found it in the Windows 98 compressed package, but didn't end up using it.
Dude, since you solved the problem, why don't you post how you solved it? Come on ;)
|
|
2007-8-6 23:08 |
|
|
minchengan
中级用户
  
积分 376
发帖 164
注册 2006-12-5
状态 离线
|
|
2007-8-14 12:24 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
用WBAT的
reboot 外部命令 重启机器的
@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带参数命令
goto end
:end
reboot
::
:menu "【DOS启动盘】"[x]
===================================
请输入密码 [$pass,5,p]
[继续(&E)] [?取消(&Q)]
===================================
::
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】"
===================================
Please enter password
===================================
|
|
2007-8-15 21:26 |
|