![]() |
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-13 22:06 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Fix:DIR /S |
| Printable Version 3,588 / 18 |
| Floor1 bush | Posted 2005-11-23 16:52 |
| 银牌会员 Posts 730 Credits 2,165 | |
![]() 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`~ ![]() |
|
| Floor2 darkradx | Posted 2005-11-23 17:54 |
| 高级用户 Posts 420 Credits 972 | |
|
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 |
|
| Floor3 JonePeng | Posted 2005-11-23 19:27 |
| 金牌会员 Posts 1,883 Credits 4,562 From 广东广州 | |
|
Well, not bad. Give it a thumbs up!
|
|
| Floor4 lanyu008 | Posted 2005-12-12 00:45 |
| 新手上路 Posts 7 Credits 13 From 广西柳州 | |
|
I can't understand~~~
What is positioning I'm a newbie |
|
| Floor5 人类 | Posted 2005-12-16 02:57 |
| 中级用户 Posts 81 Credits 306 | |
|
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 ] |
|
| Floor6 JonePeng | Posted 2005-12-16 19:58 |
| 金牌会员 Posts 1,883 Credits 4,562 From 广东广州 | |
Originally posted by Human at 2005-12-16 02:57: Hehe, I see that the parameters of dir can be combined like this! Well, I've remembered it. |
|
| Floor7 Michael | Posted 2005-12-16 20:33 |
| 钻石会员 Posts 3,041 Credits 10,056 | |
|
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 ] |
|
| Floor8 人类 | Posted 2005-12-16 22:07 |
| 中级用户 Posts 81 Credits 306 | |
|
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. |
|
| Floor9 lpclimber | Posted 2005-12-16 23:33 |
| 初级用户 Posts 85 Credits 168 | |
|
Oh, finally understand!
|
|
| Floor10 lfdjssz | Posted 2006-01-02 16:45 |
| 初级用户 Posts 72 Credits 125 | |
|
Okay, I've learned something again, salute to everyone!
|
|
| Floor11 taoty | Posted 2006-01-02 20:34 |
| 中级用户 Posts 112 Credits 275 | |
|
That's really great, learned another trick. Thanks for sharing.
|
|
| Floor12 zhri1980 | Posted 2006-01-03 17:10 |
| 初级用户 Posts 26 Credits 52 | |
|
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~~~ |
|
| Floor13 darkradx | Posted 2006-01-03 18:26 |
| 高级用户 Posts 420 Credits 972 | |
| Floor14 whwei2008 | Posted 2006-01-04 11:57 |
| 新手上路 Posts 1 Credits 2 | |
|
55555555
Don't understand啊 |
|
| Floor15 bush | Posted 2006-01-04 22:54 |
| 银牌会员 Posts 730 Credits 2,165 | |
|
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? |
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |