How can I find all files that have a name like ALPS*.doc
in a folder like P:\Systems\A.L.P.S\
?
I tried this using the command line but it returns zero:
Systems\A.L.P.S>dir /s /b c:\ |find /c "\ALPS*.doc"
What am I doing wrong?
You can directly specify what to list in the directory from the dir command itself.
So you would use this command:
cd /d c:\
dir /s /b ALPS*.doc
You first navigate to the root, then search recursively from there.
Do note that searching from C:\ will only find results in C:. If you want to search in P:\Systems\A.L.P.S, you of course have to search from that folder. the first line would then be:
cd /d p:\Systems\A.L.P.S
ALPS*2013*.doc
?
Commented
Oct 13, 2014 at 14:06