中国DOS联盟论坛

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-12 05:19
47,811 topics / 349,897 posts / today 0 new / 48,256 members
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » [Help] A relatively tricky problem
Printable Version  1,658 / 10
Floor1 feelam Posted 2007-08-06 13:29
初级用户 Posts 17 Credits 38
Under Windows command line, it can:

set /P input="Please enter the access password: "
if /I "%input%"=="password" ( goto :AX ) else ( goto :EX )

:AX
echo Congratulations, the password is correct

:EX
reset.com


But how to write the code in GRUB4DOS? Using the same set /p won't be executed. Please ask experts for guidance.

Similar to MaxDOS or矮人DOS where you can set a password before execution, how to write the code?

[ Last edited by feelam on 2007-8-14 at 12:15 AM ]
Floor2 lianjiang2004 Posted 2007-08-06 17:20
金牌会员 Posts 1,884 Credits 3,946
Please look at the software's help file, or look at the advanced section or appendix of my beginner's tutorial.
Floor3 feelam Posted 2007-08-06 19:28
初级用户 Posts 17 Credits 38
Originally posted by lianjiang2004 at 2007-8-6 05:20 PM:
Refer to the software's help file, or refer to the advanced section or appendix part of my introductory tutorial.

First of all, I would like to express my sincere gratitude for your answer.

In addition: Could you please be so kind as to directly provide it? Because I have everything else ready, and now I'm just short of this part. Time is also tight because it's for the company.
Floor4 feelam Posted 2007-08-14 00:15
初级用户 Posts 17 Credits 38
Is there anyone who can tell me?
Floor5 lianjiang2004 Posted 2007-08-14 06:49
金牌会员 Posts 1,884 Credits 3,946
From your reply, it can be seen that you are not coming here with a learning attitude. The forum is a place for learning and communication.
Floor6 lianjiang2004 Posted 2007-08-14 06:50
金牌会员 Posts 1,884 Credits 3,946
One should also understand the principle that "Haste makes waste".
Floor7 不点 Posted 2007-08-14 10:48
银牌会员 Posts 1,115 Credits 2,491
Haste makes waste, that's a good saying. Now many people are trying the Linux system, and some people complain that Linux is not suitable for themselves, saying to wait until Linux is exactly the same as Windows before using it.

In fact, this is to require Linux to quickly reach what they hope, and this idea is difficult to realize. Maybe 10 years, maybe 20 years, no one can guarantee such waiting. Such people are estimated to mostly choose to give up completely.
Floor8 feelam Posted 2007-08-15 21:07
初级用户 Posts 17 Credits 38
Originally posted by lianjiang2004 at 2007-8-14 06:50 AM:
One should also understand the principle that "Haste makes waste".


Wow, the reality is not as you imagine.
Maybe there are people who are like you said,
but I am not.
Actually, it is really because of tight time,
and I have only started learning it recently (within the past two weeks).

http://www.cn-dos.net/forum/viewthread.php?tid=32867&fpage=1&highlight=

Please take a look at my other link. I have temporarily stopped considering adding password functions, and also removed some menus.
Floor9 lianjiang2004 Posted 2007-08-15 21:29
金牌会员 Posts 1,884 Credits 3,946
What I mean is that since materials have been provided for reference, but you still don't look at them because of the excuse of tight time, then no matter how long you wait, it will still be zero and there will be no result. The key is still up to you yourself.
Floor10 lianjiang2004 Posted 2007-08-15 21:30
金牌会员 Posts 1,884 Credits 3,946
Two weeks are not enough, you can take 3 weeks, 4 weeks. Of course, you can also choose to give up, that's your freedom.
Floor11 feelam Posted 2007-08-15 22:18
初级用户 Posts 17 Credits 38
Originally posted by lianjiang2004 at 2007-8-15 09:30 PM:
Two weeks is not enough, can be three weeks, four weeks. Of course, you can also choose to give up, that's your freedom.

Well. I will continue to learn slowly. But everything still has to be based on completing the tasks at hand first.
In fact, I have downloaded your GGHOST, but for me. It's still too complicated for the time being. I still need to strengthen my basic knowledge
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023