China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 05:04
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » [Help] A relatively tricky problem View 1,576 Replies 10
Original Poster Posted 2007-08-06 13:29 ·  中国 广东 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
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 ]
Floor 2 Posted 2007-08-06 17:20 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Please look at the software's help file, or look at the advanced section or appendix of my beginner's tutorial.
Windows 一键还原
http://www.yjhy.com
Floor 3 Posted 2007-08-06 19:28 ·  中国 广东 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
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.
Floor 4 Posted 2007-08-14 00:15 ·  中国 广东 惠州 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
Is there anyone who can tell me?
Floor 5 Posted 2007-08-14 06:49 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
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.
Windows 一键还原
http://www.yjhy.com
Floor 6 Posted 2007-08-14 06:50 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
One should also understand the principle that "Haste makes waste".
Windows 一键还原
http://www.yjhy.com
Floor 7 Posted 2007-08-14 10:48 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
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.
因为我们亲手创建,这个世界更加美丽。
Floor 8 Posted 2007-08-15 21:07 ·  中国 广东 惠州 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
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.
Floor 9 Posted 2007-08-15 21:29 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
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.
Windows 一键还原
http://www.yjhy.com
Floor 10 Posted 2007-08-15 21:30 ·  中国 安徽 马鞍山 电信
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
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.
Windows 一键还原
http://www.yjhy.com
Floor 11 Posted 2007-08-15 22:18 ·  中国 广东 惠州 电信
初级用户
Credits 38
Posts 17
Joined 2007-08-04 15:08
18-year member
UID 94634
Gender Male
Status Offline
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
Forum Jump: