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 23:54
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Help] How to find a certain file under DOS??? View 2,514 Replies 10
Original Poster Posted 2003-07-28 00:00 ·  中国 广东 汕尾 电信
初级用户
Credits 129
Posts 7
Joined 2003-07-27 00:00
23-year member
UID 7635
Gender Male
Status Offline
I'm a newbie! Asking all the experts

How to find a certain file under DOS???

I always worry about this problem!!!!!
Floor 2 Posted 2003-07-28 00:00 ·  中国 广东 广州 荔湾区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
dir /s finle name(文件名)

(注:原句中“finle”应为拼写错误,正确应为“file”,但按照要求保留原内容翻译,若按正确拼写翻译应为“dir /s file name(FileName)”)
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 3 Posted 2003-07-28 00:00 ·  中国 江苏 南京 秦淮区 电信
初级用户
Credits 178
Posts 16
Joined 2003-06-20 00:00
23-year member
UID 5609
Gender Male
Status Offline
First, figure out which drive it is. It is clearer to use dir/w/p** to display**```
First, figure out which drive it is. It is clearer to use dir/w/p**
Floor 4 Posted 2003-07-28 00:00 ·  中国 广东 汕尾 电信
初级用户
Credits 129
Posts 7
Joined 2003-07-27 00:00
23-year member
UID 7635
Gender Male
Status Offline
Thank you very much to the second and third floors, especially the second floor!!!!!
Floor 5 Posted 2003-08-14 00:00 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
23-year member
UID 7105
Gender Male
Status Offline
dir /w /p can only display files in the current directory, only dir /s can display files in all subdirectories!!
This is a world of difference!!
If the file is not in the current directory, using dir /w/p can only look at the "name" and sigh!!
Floor 6 Posted 2003-08-14 00:00 ·  中国 福建 福州 电信
元老会员
★★★
农民
Credits 2,903
Posts 991
Joined 2003-07-23 00:00
23-year member
UID 7391
Gender Male
From 福建省
Status Offline
Searching is generally better with the /s parameter of DIR, especially when it comes to fuzzy searching, but the speed... Sometimes using wildcards? and * is also a very effective method.
艰难奋长戟,万古用一夫

中国DOS联盟 http://www.cn-dos.net 欢迎大家来共同学习
我的MSN&E-Mail cn_archer@hotmail.com QQ 56049418
Floor 7 Posted 2003-08-14 00:00 ·  中国 广东 广州 白云区 电信
初级用户
Credits 163
Posts 17
Joined 2003-08-13 00:00
23-year member
UID 8500
Gender Male
Status Offline
Friend on the fifth floor, you made a mistake. /p /w is used to split the screen and display five files per line. After you use the /s parameter, there may be many files. If you don't use splitting the screen or displaying five files per line, it will be troublesome.
Floor 8 Posted 2003-08-14 00:00 ·  中国 福建 福州 电信
元老会员
★★★
农民
Credits 2,903
Posts 991
Joined 2003-07-23 00:00
23-year member
UID 7391
Gender Male
From 福建省
Status Offline
The /p or /w is just a way to display the search results... If you don't add /s, if the file isn't found, there's simply no display at all
艰难奋长戟,万古用一夫

中国DOS联盟 http://www.cn-dos.net 欢迎大家来共同学习
我的MSN&E-Mail cn_archer@hotmail.com QQ 56049418
Floor 9 Posted 2003-08-14 00:00 ·  中国 吉林 四平 中移铁通
初级用户
蝎蛇统领
Credits 280
Posts 35
Joined 2003-05-21 00:00
23-year member
UID 2294
Gender Male
Status Offline
It should be like this: c:>\dir/s/p file nemu>kk.bat press Enter
Input edit kk.bat
Edit kk.bat. Add CD in front of it, save it, and then execute KK.BAT. It can save the step of entering the directory and directly execute the file you want!!!
I'm sorry, I forgot to mention. When editing KK.BAT, don't forget to delete other items except the directory of the file you want!!! Otherwise, it won't be executed~~~~~~~~~Ha! I was careless again~~~~~~~
我是菜鸟,我要变成老鸟!
www.10.164.63.101.com
Floor 10 Posted 2003-08-15 00:00 ·  中国 广东 东莞 电信
初级用户
Credits 105
Posts 1
Joined 2003-08-15 00:00
22-year member
UID 8665
Gender Male
Status Offline
Yes, adding /s is the best way.
Floor 11 Posted 2003-08-16 00:00 ·  中国 福建 宁德 电信
初级用户
Credits 263
Posts 35
Joined 2003-08-10 00:00
23-year member
UID 8334
Gender Male
Status Offline
If it is a hidden file, it must be dir /s /a
Forum Jump: