in my C drive, I want to search all files which file name includes string *BEG*.
which command I should use?
also I want to find the directory name that has file name including string *BEG*.
which command I should use?
thanks
Dos function for search files
Moderator: DosItHelp
-
- Posts: 10
- Joined: 21 Nov 2011 23:43
Re: Dos function for search files
no, I 'm asking how to find files with *BEG*. the file can be in root directory C", it can be in subfolder C:\abcd\efg\
I want to know both the file name and directory.
dir /b "C:\*BEG*" only check root directory
pls help. thanks
I want to know both the file name and directory.
dir /b "C:\*BEG*" only check root directory
pls help. thanks
Re: Dos function for search files
hi programchen,
Ed already showed you how to do it:
from dir /? command:
/S Displays files in specified directory and all subdirectories.
so it should be:
dir /s /b "C:\*BEG*"
-renzlo
Ed already showed you how to do it:
from dir /? command:
/S Displays files in specified directory and all subdirectories.
so it should be:
dir /s /b "C:\*BEG*"
-renzlo