Searching for files that have brackets in the filenames

Discussion in 'Windows 7 Help and Support' started by doug23, Dec 5, 2009.

  1. doug23

    doug23 New Member

    Joined:
    Dec 5, 2009
    Messages:
    4
    Likes Received:
    0
    How does one search within a folder for files that include a "[" in their filename? For instance, when I want to search for all files that have "[a" in the filename, Windows 7 search ignores the bracket and instead returns all filenames that contain a word that begins with "A" instead. This has got me totally stumped. :confused:
     
  2. Basher

    Basher Honorable Member

    Joined:
    Mar 15, 2009
    Messages:
    367
    Likes Received:
    12
    Can be done with Power Shell - found this on GeekHead

    The -Filter parameter may work better there eg

    Get-ChildItem -Filter *[* -Recurse

    or with a specified 'start folder'

    Get-ChildItem -Path "C:\" -Filter "*[*" -Recurse

    Your wildcard pattern was bound to the -Path parameter, which as you
    described, appears to require its criterion being satisfied every step of
    the way.

    Make sure you start it with admin rights if you want to search c drive...

    Basher
     
  3. doug23

    doug23 New Member

    Joined:
    Dec 5, 2009
    Messages:
    4
    Likes Received:
    0
    I've been playing around with the Windows 7 search a bit more, and have noticed it doesn't seem to support searching by some other types of punctuation either. When searching for files that include an exclamation-mark in their filename, it ignores all filenames that do, in fact, have an exclamation-mark and instead states "No items match your search."

    Thanks for the suggestion, Basher. Unfortunately I'm not a really tech-savy user as the PowerShell is a bit out of my league. I apologize if it sounds like I'm looking a gift horse in the mouth, but are there any other possible solutions out there? I've spent the past couple of hours searching on Google for a solution and haven't found anything. :(
     
  4. Basher

    Basher Honorable Member

    Joined:
    Mar 15, 2009
    Messages:
    367
    Likes Received:
    12
    No problem m8 - just takes me back to the days of DOS having to type in a command :p

    Basher
     

Share This Page

Loading...