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-13 22:56
Original Poster Posted 2005-11-23 16:52 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline

What does `dir/s` do you know?
Know?
Then, if there is a hidden directory, can the above command list it out?
If you type this command under win98, the result is obviously not possible.
However, we can just modify command.com~


Open command.com (of course, using a hex editor)
Locate to: offset at A348H
Change 10 to 16
Save and exit.
Reload command.com
Try `dir/s`~
Floor 2 Posted 2005-11-23 17:54 ·  中国 广东 中山 电信
高级用户
★★★
Credits 972
Posts 420
Joined 2004-05-16 00:00
22-year member
UID 24467
Gender Male
Status Offline
Need to modify two places (Also, most DOS boot disks come with the ones that have already been modified)
EWIN98SE:A2B2,A2BE
PWIN98SE:A348,A354
平生进退如飙风
Floor 3 Posted 2005-11-23 19:27 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Well, not bad. Give it a thumbs up!
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 4 Posted 2005-12-12 00:45 ·  中国 江西 南昌 电信
新手上路
Credits 13
Posts 7
Joined 2005-12-12 00:04
20-year member
UID 46957
Gender Male
From 广西柳州
Status Offline
I can't understand~~~
What is positioning
I'm a newbie
Floor 5 Posted 2005-12-16 02:57 ·  中国 上海 浦东新区 电信
中级用户
★★
Credits 306
Posts 81
Joined 2003-05-10 00:00
23-year member
UID 1988
Gender Male
Status Offline
The owner of the post hasn't fully learned DOS.
dir/adh/s or dir/ads/s is okay.

[ Last edited by 人类 on 2005-12-16 at 22:00 ]
玩DOS,还是我76年出生的人熟...
Floor 6 Posted 2005-12-16 19:58 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Originally posted by Human at 2005-12-16 02:57:
The LZ didn't fully learn DOS
dir/adh/s or dir/adh/s will do

[ Last edited by 人类 on 2005-12-16 at 03:00 ]

Hehe, I see that the parameters of dir can be combined like this! Well, I've remembered it.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 7 Posted 2005-12-16 20:33 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,056
Posts 3,041
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
The LZ just didn't describe the problem he wanted to describe clearly.

The problem is like this:
When you try to use dir filename /s /a to search for a file, if this file is in a hidden directory, it cannot be found.
And dir /adh /s just displays all hidden directories. At least it seems so from the syntax.

[ Last edited by Michael on 2005-12-16 at 20:36 ]
简单就是美
Floor 8 Posted 2005-12-16 22:07 ·  中国 上海 浦东新区 电信
中级用户
★★
Credits 306
Posts 81
Joined 2003-05-10 00:00
23-year member
UID 1988
Gender Male
Status Offline
So the original poster didn't not master DOS well, but had a poor command of Chinese. Now you know what learning Chinese is for.

In the CMD of XP, dir/s can penetrate hidden directories, and I didn't test it in 98.
玩DOS,还是我76年出生的人熟...
Floor 9 Posted 2005-12-16 23:33 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 168
Posts 85
Joined 2005-08-26 00:19
20-year member
UID 41941
Gender Male
Status Offline
Oh, finally understand!
Floor 10 Posted 2006-01-02 16:45 ·  中国 江苏 苏州 吴江区 电信
初级用户
★★
Credits 125
Posts 72
Joined 2005-09-13 06:10
20-year member
UID 42467
Status Offline
Okay, I've learned something again, salute to everyone!
Floor 11 Posted 2006-01-02 20:34 ·  中国 江苏 连云港 电信
中级用户
★★
传说中的菜鸟
Credits 275
Posts 112
Joined 2005-04-22 00:00
21-year member
UID 38486
Gender Male
Status Offline
That's really great, learned another trick. Thanks for sharing.
Floor 12 Posted 2006-01-03 17:10 ·  中国 上海 鹏博士宽带
初级用户
Credits 52
Posts 26
Joined 2006-01-03 16:47
20-year member
UID 48376
Status Offline
Oh~~~

Just for fun but taken so seriously.

The /a parameter is used to display files or directories with special attributes
/s is used to access subdirectories at the next level

That's all.

Just dir/a/s.

The original poster is still creative~~~
Floor 13 Posted 2006-01-03 18:26 ·  中国 广东 中山 电信
高级用户
★★★
Credits 972
Posts 420
Joined 2004-05-16 00:00
22-year member
UID 24467
Gender Male
Status Offline
平生进退如飙风
Floor 14 Posted 2006-01-04 11:57 ·  中国 安徽 阜阳 电信
新手上路
Credits 2
Posts 1
Joined 2006-01-04 11:55
20-year member
UID 48406
Gender Male
Status Offline
55555555
Don't understand啊
Floor 15 Posted 2006-01-04 22:54 ·  中国 重庆 渝中区 电信
银牌会员
★★★
Credits 2,165
Posts 730
Joined 2004-04-21 00:00
22-year member
UID 22966
Gender Male
Status Offline
Originally, I thought everyone knew the meaning of DIR/S, so I kept it brief!

My goal is to make DIR/S display all subdirectories (files).

If it were just to "display all hidden directories", the title wouldn't be "Repairing DIR/S".

Don't you think so?
Forum Jump: