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-08-12 15:42
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Help]How to change attributes of all subdirectories at once under DOS? View 2,458 Replies 14
Original Poster Posted 2003-04-14 00:00 ·  中国 广东 东莞 电信
初级用户
Credits 186
Posts 17
Joined 2003-04-12 00:00
23-year member
UID 1495
Gender Male
Status Offline
May I ask the experts:
1. How to change the attributes of all subdirectories under DOS?
2. Is it possible to require the user to enter a password to continue execution during the execution of a batch file?

偶是新手,恳请各路大侠多多指正!
Floor 2 Posted 2003-04-14 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
ATTRIB is sufficient, for example:
ATTRIB +S C:\DOS

To use passwords in batch files, some batch enhancement tools can be used, such as STRINGS, WBAT, etc.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-04-15 00:00 ·  中国 广东 东莞 电信
初级用户
Credits 186
Posts 17
Joined 2003-04-12 00:00
23-year member
UID 1495
Gender Male
Status Offline
Can I use attrib to set all subdirectories in a certain directory to hidden attributes at once? There are so many DOS software on the webmaster's website, I really don't know where to start! For a beginner, where should I start learning?
偶是新手,恳请各路大侠多多指正!
Floor 4 Posted 2003-04-15 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
For wildcard folder (directory) names, the built-in ATTRIB in MS-DOS can't do it, but the ATTRIB command in my MS-DOS 7.10 boot disk with the /D parameter can:
http://newdos.yginfo.net/dosware/mdos71bd.zip

For learning DOS, communicating with everyone is the best way to learn, and we can progress together.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 5 Posted 2003-04-15 00:00 ·  中国 广东 东莞 电信
初级用户
Credits 186
Posts 17
Joined 2003-04-12 00:00
23-year member
UID 1495
Gender Male
Status Offline
In the future, I will definitely have many more questions to ask. Moderator, don't be afraid of being troubled! If there's a chance, I will definitely invite you for tea. Please be so kind as to accept!
偶是新手,恳请各路大侠多多指正!
Floor 6 Posted 2003-04-15 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Okay, welcome to ask questions!
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 7 Posted 2003-04-16 00:00 ·  中国 广东 东莞 电信
初级用户
Credits 186
Posts 17
Joined 2003-04-12 00:00
23-year member
UID 1495
Gender Male
Status Offline
I accidentally saw an article saying that just adding in the batch file:
@echo off
choice /c:(password)/n is equivalent to putting a lock on the running of the batch file. I wonder what the principle is? Will this method be cracked by others?
偶是新手,恳请各路大侠多多指正!
Floor 8 Posted 2003-04-16 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
This password setting can naturally be easily cracked, just press the Ctrl+Break key.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 9 Posted 2003-04-16 00:00 ·  中国 广东 东莞 电信
初级用户
Credits 186
Posts 17
Joined 2003-04-12 00:00
23-year member
UID 1495
Gender Male
Status Offline
This time I don't agree with the moderator's statement!
The syntax of using choice /cpassword)/n is set to prevent others from running this batch file. But you said that pressing Ctrl+Break key can easily crack it. Let's ask: Can you continue to run this batch file after pressing it? No! The function of pressing Ctrl+Break key is to terminate the operation, not to skip the password and continue running! This means that you can't run my batch file without entering the correct password!
Haha, if the moderator doesn't come up with other methods, then I win this first round!
偶是新手,恳请各路大侠多多指正!
Floor 10 Posted 2003-04-17 00:00 ·  中国 浙江 金华 东阳市 电信
初级用户
Credits 132
Posts 10
Joined 2003-03-28 00:00
23-year member
UID 1294
Gender Male
Status Offline
You can modify your batch script, the person above.
Floor 11 Posted 2003-04-17 00:00 ·  中国 广东 东莞 电信
初级用户
Credits 186
Posts 17
Joined 2003-04-12 00:00
23-year member
UID 1495
Gender Male
Status Offline
The following is a quote from fangxb on 2003-4-17 10:26:35:
You can modify your batch file, the person above.

That's right!
I can only modify the registry to prohibit running all programs. Please refer to my post "One-click Lock Computer Using Batch File": http://www2.zzu.edu.cn/ie/newdos/dispbbs.asp?boardID=12&ID=1814


偶是新手,恳请各路大侠多多指正!
Floor 12 Posted 2003-04-17 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
It is running under DOS, see my reply here:

http://www2.zzu.edu.cn/ie/newdos/dispbbs.asp?boardID=12&ID=1870
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 13 Posted 2003-04-18 00:00 ·  中国 广东 佛山 电信
初级用户
Credits 108
Posts 1
Joined 2003-04-18 00:00
23-year member
UID 1600
Gender Male
Status Offline
How to open shared files from Network Neighborhood under DOS?
Also, how to run Rising Antivirus software installed under Windows under DOS?
I heard from others that antivirus under DOS is actually what kind of thing?
How to play MP3 under DOS?
Please give instructions
Floor 14 Posted 2003-04-18 00:00 ·  中国 湖北 武汉 硚口区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Start a new thread separately on floor 13.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 15 Posted 2003-05-27 00:00 ·  中国 吉林 四平 中移铁通
初级用户
蝎蛇统领
Credits 280
Posts 35
Joined 2003-05-21 00:00
23-year member
UID 2294
Gender Male
Status Offline
What you said is not right either. You can experiment with each key on the keyboard one by one. I've experimented because that password can only be a combination of one or more, and as long as you press the right letter, you can continue running. It's completely scaring people—just scares kids, no use for experts! You can go try it! It's just a paper tiger!
我是菜鸟,我要变成老鸟!
www.10.164.63.101.com
Forum Jump: