1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Looking for files with more than 1 period

Discussion in 'Support' started by Charles G, Sep 14, 2012.

  1. Charles G

    Joined:
    Apr 2, 2011
    Messages:
    1,022
    Likes Received:
    0
    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
     
  2. dcantor

    Joined:
    May 29, 2008
    Messages:
    507
    Likes Received:
    3
    Something like this:

    > C:\
    > DIR /F /S ::.*\..*\..*
     
  3. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    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:...
     

Share This Page