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 18:34
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Help] What is the result of dir *d*? View 1,992 Replies 14
Original Poster Posted 2008-11-29 16:04 ·  中国 陕西 西安 电信
初级用户
Credits 120
Posts 45
Joined 2007-03-13 05:57
19-year member
UID 81568
Gender Male
Status Offline
What is the result of dir *d*? Why do some results like io.sys also appear?
Attachments
t.PNG
test
Floor 2 Posted 2008-11-29 16:23 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
The COMMAND built into DOS isn't that smart. `*d*` doesn't represent file names with the letter 'd' in the middle. `dir *d*` is the same as `dir *`, which is just `dir`.
Floor 3 Posted 2008-11-30 18:07 ·  中国 北京 朝阳区 联通
高级用户
★★
Credits 652
Posts 193
Joined 2005-09-25 00:00
20-year member
UID 42822
Status Offline
The CMD.exe of XP is not smart enough either. I entered "dir *d*.*" under c:\>, and files like VIRUS.DAT were also displayed.
ディスケット オペレーティン グシステム
Floor 4 Posted 2008-11-30 18:38 ·  德国 马克斯-普朗克等离子物理研究所
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
Originally posted by alchemist at 2008-11-30 06:07 PM:
XP's CMD.exe is not smart enough either. I typed in c:\>
dir *d*.*
Files like VIRUS.DAT were also displayed

I tried it, and it's the same with the search box in the upper right corner of the Vista Explorer
Floor 5 Posted 2008-11-30 18:57 ·  中国 北京 朝阳区 联通
高级用户
★★
Credits 652
Posts 193
Joined 2005-09-25 00:00
20-year member
UID 42822
Status Offline
Thank you, confirmed the Microsoft bug
ディスケット オペレーティン グシステム
Floor 6 Posted 2008-12-02 14:00 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
LZ, you're going to get a punishment, right? Can you publish such top-secret information?

In Vista's CMD, only show files with D!!!
In Vista's Explorer, that's much more fun, automatically search for all deleted files on the entire hard drive!!!
(Including files in the emptied recycle bin can be found, really fun)

I actually found files deleted in 2005, fun, right?

[ Last edited by goli2008 on 2008-12-2 at 14:02 ]
Floor 7 Posted 2008-12-02 17:26 ·  中国 陕西 西安 电信
初级用户
Credits 120
Posts 45
Joined 2007-03-13 05:57
19-year member
UID 81568
Gender Male
Status Offline
Originally posted by goli2008 at 2008-12-2 02:00 PM:
楼主, you're going to be disciplined, can you disclose such top-secret information?

In Vista's CMD, only files with "D" are displayed!!!
In Vista's File Explorer, that's much more fun, automatically searching the entire hard drive...

Is that true?

[ Last edited by tianlijian on 2008-12-2 at 17:29 ]
test
Floor 8 Posted 2008-12-02 17:35 ·  中国 北京 联通
高级用户
★★
Credits 652
Posts 193
Joined 2005-09-25 00:00
20-year member
UID 42822
Status Offline
Tools like DOS 6.22's undelete command, Norton's UNERASE, and active@'s UNERASER for quickly restoring permanently deleted files generally work when the clusters where the files are located on the disk haven't been occupied by other files. If these clusters have already been occupied by other files, restoration will be quite difficult.
ディスケット オペレーティン グシステム
Floor 9 Posted 2008-12-25 00:42 ·  中国 湖北 武汉 武昌区 电信
初级用户
★★
Credits 180
Posts 82
Joined 2007-01-11 23:02
19-year member
UID 76206
Gender Male
Status Offline
L樓主, 可以很明确的说在vista下的cmd中dir *d*的结果是完全正确的

Wait, no, the original Chinese has some typos. Let's correct and translate properly:

楼主,可以很明确的说在vista下的cmd中dir *d*的结果是完全正确的

Translation:
L楼主, can clearly say that the result of dir *d* in cmd under Vista is completely correct
好爱你哦。。。老婆
Floor 10 Posted 2008-12-27 11:44 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
19-year member
UID 94024
Gender Male
Status Offline
If you replace the front with several? It won't be a problem :)
For example, to find MSDOS.SYS, you can use DIR ??DO?.SYS/A (in early versions of DOS,?? will include?, but CMD won't).
Floor 11 Posted 2009-02-04 12:30 ·  中国 广东 江门 台山市 电信
新手上路
Credits 16
Posts 11
Joined 2009-02-04 00:07
17-year member
UID 137970
Gender Male
Status Offline
Microsoft Windows XP [Version 5.1.2600]

Normal display
Floor 12 Posted 2009-02-04 12:52 ·  中国 辽宁 铁岭 联通
新手上路
Credits 17
Posts 9
Joined 2009-01-22 14:40
17-year member
UID 137250
Gender Male
Status Offline
I tried, and it does display the correct result
Floor 13 Posted 2009-02-05 01:02 ·  中国 湖南 常德 电信
银牌会员
★★★
Credits 1,384
Posts 709
Joined 2005-10-29 22:22
20-year member
UID 44271
Status Offline
I also have no problem under Windows XP, only two folders with d are displayed...
CMD, DOS have all passed...
Floor 14 Posted 2009-02-10 10:48 ·  中国 天津 电信
社区乞丐
Credits -46
Posts 25
Joined 2009-02-09 13:16
17-year member
UID 138388
Gender Male
From 内蒙
Status Offline
I also tried, doesn't it conform to the regular law! How could it recover data from several years ago, in VISTA?
Floor 15 Posted 2009-02-10 13:16 ·  中国 黑龙江 牡丹江 联通
新手上路
一片绿油油的黄叶
Credits 3
Posts 2
Joined 2009-02-02 16:53
17-year member
UID 137854
Gender Male
Status Offline
Originally posted by netwinxp at 2008-12-27 11:44:
Using several ?s in front won't cause problems :)
For example, to find MSDOS.SYS, you can use DIR ??DO?.SYS/A (in early versions of DOS, ?? would include ?, but CMD won't).


(At least some) CMD's ?? also includes ?.

a cmd on xp

D:\1\4>dir p.??
Volume in drive D is 软件
Volume Serial Number is 1853-E8DB

Directory of D:\1\4

2009-02-09 20:17 15,647 p.1
2009-02-09 20:17 15,647 p.10
2009-02-09 20:17 15,850 p.2
2009-02-09 20:17 15,886 p.3
2009-02-09 20:17 15,825 p.4
2009-02-09 20:17 16,052 p.5
2009-02-09 20:17 15,936 p.6
2009-02-09 20:17 16,077 p.7
2009-02-09 20:17 16,078 p.8
2009-02-09 20:17 8,075 p.9
10 File(s) 151,073 bytes
0 Dir(s) 45,083,480,064 bytes free

D:\1\4>


[ Last edited by kwl01skz on 2009-2-10 at 13:21 ]
Forum Jump: