Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Search for files with parenthesis in name

64 views
Skip to first unread message

Erik Wikström

unread,
Feb 25, 2007, 7:25:02 AM2/25/07
to
How do I search for files who's name contains a parenthesis? Entering
(2) gives me all files containing 2 (which are a couple of houndred,
while there should only be two or three with (2) in the name) since the
parentheses have a special meaning when searching. Ive tried to use \ to
escape them but no luck.

--
Erik Wikström

Malke

unread,
Feb 25, 2007, 10:09:06 AM2/25/07
to

What about enclosing the search in quotes, like "(2)"? Does that work?


Malke
--
Elephant Boy Computers
www.elephantboycomputers.com
"Don't Panic!"
MS-MVP Windows - Shell/User

Erik Wikström

unread,
Feb 25, 2007, 12:58:31 PM2/25/07
to
On 2007-02-25 16:09, Malke wrote:
> Erik Wikström wrote:
>> How do I search for files who's name contains a parenthesis? Entering
>> (2) gives me all files containing 2 (which are a couple of houndred,
>> while there should only be two or three with (2) in the name) since the
>> parentheses have a special meaning when searching. Ive tried to use \ to
>> escape them but no luck.
>>
>> --
>> Erik Wikström
>
> What about enclosing the search in quotes, like "(2)"? Does that work?

Nope

--
Erik Wikström

Bob Hallsworth

unread,
Feb 26, 2007, 5:52:37 AM2/26/07
to
If there are spaces around those, add them withing the quotes. Works for me!
" (2) "

Bob

"Erik Wikström" <Erik-w...@telia.com> wrote in message
news:OGUx8fNW...@TK2MSFTNGP06.phx.gbl...

Erik Wikström

unread,
Feb 26, 2007, 1:01:45 PM2/26/07
to
On 2007-02-26 11:52, Bob Hallsworth wrote:
> "Erik Wikström" <Erik-w...@telia.com> wrote in message
> news:OGUx8fNW...@TK2MSFTNGP06.phx.gbl...
>> How do I search for files who's name contains a parenthesis? Entering (2)
>> gives me all files containing 2 (which are a couple of houndred, while
>> there should only be two or three with (2) in the name) since the
>> parentheses have a special meaning when searching. Ive tried to use \ to
>> escape them but no luck.
>
> If there are spaces around those, add them withing the quotes. Works
> for me!
> " (2) "

Nope, no such luck, but for some reason the number of files found was
about halved.

--
Erik Wikström

Wayne Hertz

unread,
Feb 28, 2007, 4:53:16 PM2/28/07
to
Use XYplorer (or some other good explorer replacement) for searching and say
bye-bye to such problems.

Leigh@discussions.microsoft.com Andrew Leigh

unread,
Mar 2, 2007, 10:06:20 PM3/2/07
to
It's crazy not to allow people to search for the parentheses. The problem
arose for me as a result of two failed file transfers. In both cases, the new
files were renamed with a (1) or (2) suffix. So I have thousands of these
extraneous files on my computer to get rid of. Or I could clean the hard disk
and do another file transfer, but it would be far simpler if I could simply
delete all files with a (1) or (2) suffix.

Oh, and I just tried installing XYplorer on my computer (solely to deal with
this issue). The program crashed.

Keith Miller MVP

unread,
Mar 17, 2007, 11:13:43 AM3/17/07
to
Finally found out the way:

In the Search box, type:

name:~"*(2)*"

--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]

"Erik Wikström" <Erik-w...@telia.com> wrote in message
news:OGUx8fNW...@TK2MSFTNGP06.phx.gbl...

Amir Deilami

unread,
Oct 13, 2010, 12:04:55 AM10/13/10
to
Why the hell does everything new SUCK so bad?

"*(2)*" didn't work, " (2)" didn't work, nothing works.

Explorer is gone retarded. It can't see parenthesis, neither can distinguish _ and space.

Microsoft has lost their mind. I'm pissed off man...what the hell?

Anyone with any other cure? I'm doing this for the same reason everyone else is doing it. I want to delete files I just copied. Help me out guys.

> On Sunday, February 25, 2007 7:25 AM Erik-wikstro wrote:

> How do I search for files who's name contains a parenthesis? Entering
> (2) gives me all files containing 2 (which are a couple of houndred,
> while there should only be two or three with (2) in the name) since the
> parentheses have a special meaning when searching. Ive tried to use \ to
> escape them but no luck.
>
> --

> Erik Wikstr?m


>> On Sunday, February 25, 2007 10:09 AM Malke wrote:

>> Erik Wikstr?m wrote:
>>
>> What about enclosing the search in quotes, like "(2)"? Does that work?
>>
>>

>> Malke
>> --
>> Elephant Boy Computers
>> www.elephantboycomputers.com
>> "Don't Panic!"
>> MS-MVP Windows - Shell/User


>>> On Sunday, February 25, 2007 12:58 PM Erik-wikstro wrote:

>>> On 2007-02-25 16:09, Malke wrote:
>>>

>>> Nope
>>>
>>> --
>>> Erik Wikstr?m


>>>> On Monday, February 26, 2007 5:52 AM Bob Hallsworth wrote:

>>>> If there are spaces around those, add them withing the quotes. Works for me!
>>>> " (2) "
>>>>

>>>> Bob

>>>>> Erik Wikstr?m


>>>>>> On Wednesday, February 28, 2007 4:53 PM Wayne Hertz wrote:

>>>>>> Use XYplorer (or some other good explorer replacement) for searching and say
>>>>>> bye-bye to such problems.


>>>>>>>> On Saturday, March 17, 2007 10:13 AM Keith Miller MVP wrote:

>>>>>>>> Finally found out the way:
>>>>>>>>
>>>>>>>> In the Search box, type:
>>>>>>>>
>>>>>>>> name:~"*(2)*"
>>>>>>>>
>>>>>>>> --
>>>>>>>> Good Luck,
>>>>>>>>
>>>>>>>> Keith
>>>>>>>> Microsoft MVP [Windows XP Shell/User]


>>>>>>>> Submitted via EggHeadCafe - Software Developer Portal of Choice
>>>>>>>> SharePoint Lists In Excel Via VSTO
>>>>>>>> http://www.eggheadcafe.com/tutorials/aspnet/b56c03b3-35ea-43c5-8b87-2f0be518377c/sharepoint-lists-in-excel-via-vsto.aspx

David Crewdson

unread,
Jan 20, 2011, 11:08:31 AM1/20/11
to
To recursively delete these (1) files open a command window (start...Run...cmd) and do the following:

cd c:\
dir /s *"(1)"* (/s means recursive)

Make sure these are all the files you want to delete, then:

del /s *"(1)"* (/s means recursive)


NOTES:

1) If "Run" is not listed under Start (Windows 7), right-click the lower-left Windows-icon -> Properties -> Start Menu -> Customize -> check [ ] Run command

2) To make the initial DIR listing more readable, you can also try:

dir /a:-d/b/s *"(1)"*

/a:-d - Skips directories
/b - Bare information (no headers or summary)
/s - Recursive


>>>>>>>>> On Wednesday, October 13, 2010 12:04 AM Amir Deilami wrote:

>>>>>>>>> Why the hell does everything new SUCK so bad?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "*(2)*" didn't work, " (2)" didn't work, nothing works.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Explorer is gone retarded. It can't see parenthesis, neither can distinguish _ and space.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Microsoft has lost their mind. I'm pissed off man...what the hell?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Anyone with any other cure? I'm doing this for the same reason everyone else is doing it. I want to delete files I just copied. Help me out guys.


>>>>>>>>> Submitted via EggHeadCafe
>>>>>>>>> Creating Google Motion Charts from Excel data
>>>>>>>>> http://www.eggheadcafe.com/tutorials/aspnet/86599bca-edda-4204-af15-7a1cf901a071/creating-google-motion-charts-from-excel-data.aspx

whoai...@gmail.com

unread,
Sep 9, 2016, 10:18:25 PM9/9/16
to
Thank you David!

I used a similar process in Terminal for Mac to find these files.

find . -name *"(1)"*

Worked perfectly.

-A
0 new messages