中国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 12:14
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » [Help]How to change attributes of all subdirectories at once under DOS?
Printable Version  2,456 / 14
Floor1 杨上当 Posted 2003-04-14 00:00
初级用户 Posts 17 Credits 186
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?

Floor2 Wengier Posted 2003-04-14 00:00
系统支持 Posts 10,521 Credits 27,736
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.
Floor3 杨上当 Posted 2003-04-15 00:00
初级用户 Posts 17 Credits 186
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?
Floor4 Wengier Posted 2003-04-15 00:00
系统支持 Posts 10,521 Credits 27,736
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.
Floor5 杨上当 Posted 2003-04-15 00:00
初级用户 Posts 17 Credits 186
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!
Floor6 Wengier Posted 2003-04-15 00:00
系统支持 Posts 10,521 Credits 27,736
Okay, welcome to ask questions!
Floor7 杨上当 Posted 2003-04-16 00:00
初级用户 Posts 17 Credits 186
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?
Floor8 Wengier Posted 2003-04-16 00:00
系统支持 Posts 10,521 Credits 27,736
This password setting can naturally be easily cracked, just press the Ctrl+Break key.
Floor9 杨上当 Posted 2003-04-16 00:00
初级用户 Posts 17 Credits 186
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!
Floor10 fangxb Posted 2003-04-17 00:00
初级用户 Posts 10 Credits 132
You can modify your batch script, the person above.
Floor11 杨上当 Posted 2003-04-17 00:00
初级用户 Posts 17 Credits 186
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


Floor12 Wengier Posted 2003-04-17 00:00
系统支持 Posts 10,521 Credits 27,736
It is running under DOS, see my reply here:

http://www2.zzu.edu.cn/ie/newdos/dispbbs.asp?boardID=12&ID=1870
Floor13 energy Posted 2003-04-18 00:00
初级用户 Posts 1 Credits 108
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
Floor14 如是大师 Posted 2003-04-18 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
Start a new thread separately on floor 13.
Floor15 无妄★模拟 Posted 2003-05-27 00:00
初级用户 Posts 35 Credits 280
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!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023