Looking for files with more than 1 period

Apr 2, 2011
1,607
15
55
North Carolina, USA
Code:
(global /h /i /q for /a: /h %fn in ("*") DO if %@count[.,"%fn"] gt 1 echo %@full["%fn"]) >>! d:\twodots.lst

It is taking a huge amount of time. Is there a way to search using just DIR /a: /b /s seach term > >! twodots.lst
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Even simpler IMHO:

dir/f/s/h/nej/ogne *[.]*[.]*

and it will not report files in subtrees that are junctions/symbolic links, nor the .. directories. You may want to control whether or not to report directories using /a:...
 

Similar threads