Solved

How to search windows files using tags with logical expressions

Posted on 2014-02-23
6
513 Views
Last Modified: 2014-02-24
hi,
I can search for files in windows using tags on files by typing, for example:
tags: property, outdoors, brick

But if i want to exclude certain tags or perform a more complex search i can't find how to do this. Any ideas?

The windows help is not very helpful:
http://windows.microsoft.com/en-gb/windows7/advanced-tips-for-searching-in-windows

Or maybe this feature is simply not available? As a workaround i would settle for a dos command to add a temporary tag or flag to a given set so i can then use windows to select.

Thanks
0
Comment
Question by:xenium
  • 3
  • 2
6 Comments
 
LVL 51

Assisted Solution

by:Bill Prew
Bill Prew earned 50 total points
ID: 39881254
I think you can use the NOT modifier, although I don't typically search this way so not an expert.

http://windows.microsoft.com/en-us/windows-vista/tips-for-finding-files

~bp
0
 

Author Comment

by:xenium
ID: 39881343
Thanks the link was useful i was not putting NOT in capitals.

It seems to modify the result but not reliably, something funny is happening i will aim to upload a proper example tomorrow.
0
 
LVL 8

Assisted Solution

by:Amit Khilnaney
Amit Khilnaney earned 150 total points
ID: 39883162
You can use - in before word tag

tag: blue OR -tag: black

this will return pictures which are tagged with word blue or anything else but not black

you need to use OR and AND wisely and with parentheses if required.

Waiting for your example for further suggestions.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:xenium
ID: 39883293
Amit, isn't blue OR anything else, just anything else? !!

Anyway, NOT now seems to be working ok, eg

example 10 files:
https://www.dropbox.com/sh/p16tjoo1fay2nv5/EMy5iqz_P0

2 files returned by:  tags: f61 NOT common
8 files returned by:  tags: NOT flat2
3 files returned by:  tags: F61 NOT (oddj OR heat)
4 files returned by:  tags: (oddj OR heat) NOT smp

I will do some more tests to confirm if ok.
0
 
LVL 8

Accepted Solution

by:
Amit Khilnaney earned 150 total points
ID: 39883337
for just anything else which is not f61

NOT tag: f61
or
- tag: f61


well you can either use NOT or -

i prefer - instead of NOT as it reduces typing effort but typing NOT improves readability of query for others.

This will help you to formulate your queries better.

More help here:
http://blogs.windows.com/windows/archive/b/windowsvista/archive/2007/05/09/advanced-search-techniques.aspx



or

http://windows.microsoft.com/en-in/windows7/advanced-tips-for-searching-in-windows
0
 

Author Comment

by:xenium
ID: 39884078
hi Amit, ok yes i see blue or not black includes black where file is also tagged blue... brain hurting now!

Thanks for the extra explanation and links, looks like this will cover anything I may need here.

Cheers
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now