中国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 20:19
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » [Help] What is the result of dir *d*?
Printable Version  1,994 / 14
Floor1 tianlijian Posted 2008-11-29 16:04
初级用户 Posts 45 Credits 120
What is the result of dir *d*? Why do some results like io.sys also appear?

Attachments
t.PNG (14.97 KiB)
Floor2 DOSforever Posted 2008-11-29 16:23
金牌会员 Posts 2,239 Credits 4,639
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`.
Floor3 alchemist Posted 2008-11-30 18:07
高级用户 Posts 193 Credits 652
The CMD.exe of XP is not smart enough either. I entered "dir *d*.*" under c:\>, and files like VIRUS.DAT were also displayed.
Floor4 fujianabc Posted 2008-11-30 18:38
金牌会员 Posts 1,616 Credits 3,467
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
Floor5 alchemist Posted 2008-11-30 18:57
高级用户 Posts 193 Credits 652
Thank you, confirmed the Microsoft bug
Floor6 goli2008 Posted 2008-12-02 14:00
中级用户 Posts 97 Credits 252
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 ]
Floor7 tianlijian Posted 2008-12-02 17:26
初级用户 Posts 45 Credits 120
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 ]
Floor8 alchemist Posted 2008-12-02 17:35
高级用户 Posts 193 Credits 652
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.
Floor9 dinfli Posted 2008-12-25 00:42
初级用户 Posts 82 Credits 180
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
Floor10 netwinxp Posted 2008-12-27 11:44
高级用户 Posts 366 Credits 741
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).
Floor11 jmzhwf Posted 2009-02-04 12:30
新手上路 Posts 11 Credits 16
Microsoft Windows XP [Version 5.1.2600]

Normal display
Floor12 spiderking Posted 2009-02-04 12:52
新手上路 Posts 9 Credits 17
I tried, and it does display the correct result
Floor13 wl00560 Posted 2009-02-05 01:02
银牌会员 Posts 709 Credits 1,384
I also have no problem under Windows XP, only two folders with d are displayed...
CMD, DOS have all passed...
Floor14 earth123xinyuan Posted 2009-02-10 10:48
社区乞丐 Posts 25 Credits -46 From 内蒙
I also tried, doesn't it conform to the regular law! How could it recover data from several years ago, in VISTA?
Floor15 kwl01skz Posted 2009-02-10 13:16
新手上路 Posts 2 Credits 3
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 ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023