"Intuitive Design"

Humorous Gore
"Intuitive Design"

Posted Sep 13, 2016, 7:59 AM UTC

1.3K147
TomMado•

To be fair, Windows 10's search leaves a lot to be desired, too.

177
AyrA_ch•

whenever I desperately need a file that was swallowed up by the way I sort things on my computer (random) I just run CMD.EXE /K DIR /S /A /B C:\filename.doc

Always finds it.

EDIT: Since people seem to like it, here is what I did on one machine where I need it a lot:

Save a text file named search.bat to the desktop with this content:

@ECHO OFF
SET /P FILENAME=Filename:
DIR /S /A /B C:\%FILENAME%
PAUSE

You then have a search utility you can double click on. You can even go so far as to make a 2 file combination that creates a cache of all files. This way you can find files within a second.

EDIT2: Here is a script that will search all connected drives dynamically:

@ECHO OFF
SET /P FILENAME=Filename:
FOR %%I IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (
IF EXIST %%I:\ ECHO Scanning %%I:\
IF EXIST %%I:\ DIR /S /A /B %%I:\%FILENAME%
)
PAUSE

Technical background

What is the command actually doing?

Let's take it apart:

  • CMD.EXE: This simply launches CMD.exe, the windows terminal application. In earlier versions (Windows ME and older) it was called command.com and came directly from DOS. CMD.EXE is a DOS prompt but the underlying DOS system (and its limitations) are gone.
  • /K: This tells CMD to interpret everything that follows as a command, process it and stay open. /C is similar but closes CMD after processing
  • DIR: This is a CMD internal command to list directory contents.
  • /S: Tell DIR to also scan subdirectories.
  • /A: Tell DIR to also scan hidden and system files and directories.
  • /B: Tell DIR to use a simple format with one filename and path per line.
  • C:\filename.doc: Tell DIR to search for "filename.doc" and start at C:. You can also use file mask, so if you know your image was named "IMG something", search for C:\IMG*.jpg. Asterisks (*) indicate 0 or more and question marks (?) indicate exactly one char.

OK, so why is this so fast you might ask?

This uses uncached Win32 API calls. These calls have been with Windows for 20 years now and have seen a lot of optimization. When you search for "C:\test.txt", dir will enter a directory and ask windows to give it a list of all files named "test.txt". This yields a very short result of either 1 or 0 entries before DIR moves on to the next directory. The windows search however has to sift through the whole index catalog to find your entry. Also it is more sophisticated. DIR cannot search for file contents.

How to use the displayed results?

Use the mouse to select the path you want and press ENTER or RETURN on the keyboard to copy. If you want to browse to that file, then select only the path without the name and paste it into the Windows explorer address bar. If you want to open the file, open the application that should display it, then open the "open file" dialog and paste the full path with filename into the filename box

193
Inofor•

What the heck? This is so fast compared to the normal search. It found an image file deep in subfolders with huge amounts of files in about half a second while the normal search (limited to that drive) found it in 38 seconds on a fast drive.

60
PhonyDegree•

The difference between an old win32 call and a new advanced ui feature. There's a reason some people prefer shell scripting & programming.

44
Av4t4r•

Shamless plug? here. I got tired of that crap so I made my own GUI utility in .NET. Lot faster than regular search.

19
AyrA_ch•

I edited my post with an explanation of the command and the insane speed if interested.

5
Lurking_Grue•

Yeah, I also have a folder of compiled unix utils in my cmd path so I can grep a folder of files to look for text.

1
ferozer0•

Try everything too, it's pretty fast imo.

6
ElectronicDrug•

Everything is fuckin awesome

4
Rndom_Gy_159•

Or run everything

Seriously, I haven't used Windows search in like a year and a half.

17
AyrA_ch•

"Everything" seems to list all contents of the disk in the Window. While this might not be an issue for most people, I have a development machine and these tend to accumulate large number of files (over 10 million in my case). This can slow down the UI. I hope they planned that in.

6
Rndom_Gy_159•

Really? I've used it with 1.5-ish million on my desktop (granted, it's a 5820K) and it's as smooth as my 500K item laptop with 6700HQ.

7
deathchimp•

There's a check box in the settings. You can disable showing the list before you enter a search.

1
WhenDatWeedIsGone•

I don't know why, but it doesn't work for me. When I search for Name.txt, it doesn't return anything even though I know that Name.txt is in a folder I made to test it out. Any ideas? Running Win8.1.

5
AyrA_ch•

Did you remember to put in C:\name.txt and not only name.txt?

If your file is on another drive, you have to replace C:\

3
WhenDatWeedIsGone•

Didn't think I had to put C:\ in front of it. Thought C:%FILENAME% took care of that.

2
ThorBreakBeatGod•

windows pro tip right here. thanks!

3
wcrp73•

EDIT: Since people seem to like it, here is what I did on one machine where I need it a lot: Save a text file named search.bat to the desktop with this content:

@ECHO OFF

SET /P FILENAME=Filename:

DIR /S /A /B C:%FILENAME%

PAUSE

You then have a search utility you can double click on. You can even go so far as to make a 2 file combination that creates a cache of all files. This way you can find files within a second.

I love that, but is there a way to search multiple drives at once? Like, I have C: and D: drives.

1
AyrA_ch•

You can duplicate the DIR line to include other drives, or do this to scan all drives dynamically:

@ECHO OFF
SET /P FILENAME=Filename:
FOR %%I IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (
IF EXIST %%I:\ ECHO Scanning %%I:\
IF EXIST %%I:\ DIR /S /A /B %%I:\%FILENAME%
)
PAUSE

This way you can plug in a USB drive and it will automatically be searched too. If you have slow drives or network drives you do not wish to be scanned, just remove the corresponding letters.

3
wcrp73•

Wow, thanks! I've always wanted to master command prompt and be a wizard...

2
RedG3ar•

I just use listary

1
ckinsey•

Also intuitive!

1
shvelo•

Since when is Windows's search something to compare others to, it was always a pile of crap

18
tregorman•

When windows and apple are the only* choices

^^^^^*yes ^^^^^i ^^^^^know ^^^^^about ^^^^^linux

9
WhyArentIHigh•

This is the year of the Linux desktop!

27
genericname12345•

Just like every year since Linux launched.

18
mythofechelon•

I can't believe how intermittent the searching is on Windows 10.

8
rgbclub•

As a long-time OSX user I'm finding Windows 10's search to be a lot better. Spotlight is really, really shit.

8
dirtyhappythoughts•

I am amazed there's anything on OSX less polished than windows. I felt OSX generally was a lot more polished in such regards.

2
Skutter_OP•

Windows, OSX...they're both ass.

4
doctorsound•

I hadn't had the issue of typing n characters and seeing what I want, but accidentally typing n+1 characters correctly and it changing to something else entirely until I moved to OSX.

3
whizzer0•

I have no issues searching on Linux, though.

3
TidestManager1•

Try everything search. So long as it's for files, not much can beat it.

2
pcopley•

A sucks

B is just as bad!!!1

1
coloured_sunglasses•

Who cares about fairness? Not everything needs to be mac vs pc.

1
ni-THiNK•

I just use a program called "Everything" by voidtools. It is near instantaneous and finds pretty much everything.

Way better than spotlight or windows search

1
[deleted]•

This is why I always use Alfred on my OS X partition.

76
aykcak•

Ubuntu does exactly the same thing. Where is this coming from? What is the common ancestor?

19
lunartree•

Seriously, what kind of stupid search algorithm would create this problem?

35
__Xenomorph__•

Unix.

1
[deleted]•

[removed]

1
AutoModeratorMODfinacran193 is cute•

This subreddit does not allow for accounts less than one day old to post or comment. Your submission was automatically removed.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1
pier25•

I'm a huge Alfred fan. It eats 5 Spotlights for breakfast every day.

3
[deleted]•

[deleted]

1
Azphreal•

Nice to see a complaint about OSX every so often. People love to hate Windows.

68
TingPing•

Just a numbers game, more Windows users to complain.

49
kroesreddit•

desperately tries to inject a joke about how no one complains because no one uses it

17
cyanisaac•

Really? All I've seen is people bashing on Mac. Must be different parts of Reddit.

13
Skutter_OP•

OSX has been dead to me since 10.6.8 tbh. 64bit was the only good thing I've felt they've really done, everything else has either slowed my mac, been annoying (no, fuckoff launchpad) or just been an ignorable addition.

Having to switch between OSX and Windows all the time, they're as bad as each other in my opinion.

9
thisaccountisbs•

I fucking hate launchpad, spotlight is my go-to, but I can't even tell you how many times I've done this same shit. 'Keyboard maestro' ' keyboard' and 'keychain access' every damn day.

6
Skutter_OP•

I remember when it came out there was a lot of talk about an iMac that had a touch screen, or some very weird instance of switching to an iOS 'mode' with a screen that folds down to a more horizontal angle (funny how Windows ended up doing that exact thing). But nope, they decided, for 4 years, to do a massive load of fuck-all with it. It's just an annoying, shittier version of having your applications folder in the application bar.

4
phpdevster•

My issue with OSX is that you can't seem to turn off those update notifications. Apple has permanently destroyed my trust in it since every update seems to slow down my Apple devices. I refuse to update my phone now because I want thing to be usable over the next 3 years, not slow to a crawl. But the damn thing keeps bugging me at the absolute most inopportune times about updating it. The same thing with OSX updates now. I simply refuse to update, even if the update patches a security hole. I can't afford a newer $2500 MacBook every 2 years, so I just don't bother updating.

7
sgtlion•

Seriously, there are graphs of computer performance v. time. The big software updates that coincide with new computer releases suddenly spike the usage of RAM and CPU in older macs. The trick now is to just not update. At all.

1
allonsyyy•

My ten year old, core 2 duo MacBook ran Yosemite. Apple isn't doing planned obsolescence with their laptops yet, you can take the updates.

1
ninklo•

But is it still snappy like it was when you bought it?

2
allonsyyy•

Snappy? Did you miss "core 2 duo"?

It's still running tho, I gave it to my brother. You can't run an unpatched machine on the internet, you have to update it. That's like barebacking a prostitute.

4
tgkay•

It's because they don't optimise their updates for old devices. I didn't realise this is how they were forcing people to buy new hardware until I ran some diagnostic tools on my iPhone 4 and found out that iOS alone is using 90% of the thing's RAM, even when the phone is idling with no apps open. Outrageous.

1
HomemadeBananas•

I love OS X but this is a legitimate complaint I have. It's not a bad trade-off since I can't think of many issues like this.

5
outadoc•

Apple's design quality has been slowly getting worse, I feel. :(

5
d_rudy•

I quickly typed Cmd+Space "System Preferences" Enter the other day, and it opened up a wikipedia article about System Preferences... wtf? (Not the first time it's done something stupid like that)

57
Skutter_OP•

Spotlight has been shit ever since they gave it that revamp, somewhere around when it became central to the screen rather than the top-right. Buggy as hell, I had a friend who has a Mac Pro (last of the true tower Mac Pros) that he uses for work (hexa-core i7, multiple SSDs, 32gb of RAM, the works). He updated from Snow Leopard to...might've been a few editions after Lion, think it was Yosemite..and spotlight perpetually indexed his drives on boot. Brought his entire computer to it's knees, completely unusuable to the point it was so slow he was barely able to navigate the settings. He had to look up a fix on a different machine. And this was a bug in release software.

40
jhuynh405•

There's an option I believe to omit certain sources for spotlight searches. What I would LOVE to see in addition to that is the ability to drag those sources in order of importance for preference.

7
Nloveladyallen•

Disk Utility on El Cap is a huge pile of software gore too.

47
DynoMenace•

Right? They dumbed it down and the only thing they added were more excuses for it to give for an operation not working.

29
drizztmainsword•

What can't you do in it now? I've never used it other than to repair or partition disks.

3
TheNamelessKing•

You can't erase/secure erase free space on disks any more for one thing.

Also, I've found that reformatting from dusk utility often has issues and I News to end up reformatting it from the command line anyways...

10
dakoellis•

They just hid a lot of the options. I don't have on my way n front of me right now but stuff like restoring a flash drive isn't as easy iirc

2
evotopid•

Last time I was only able to fix a bad journal on a HFS+ partition using Linux. Just took a fsck.hfsplus and problem solved.

3
Skutter_OP•

One of the few things I liked in OSX. Downloaded the old version soon after I screencapped this actually! I was trying to create a disk partition and be sneaky by not using a seperate drive and put the installer on a little temporary partition. The stupid UI of the new version made specifying exact partition sizes hell, you change one and it changes the size of another or creates another partition. Not to mention the speed and the fact it forced a First Aid on my disk before partitioning- I'd only run First Aid on it manually half an hour before.

2
OMG_A_SALMON•

The old version was pretty okay, but the current one is just crap.

2
manot12•

How it usually goes:

stea....

Steam.app

steam

steam_update3619_dploi_msg.dll

23
TavixVi•

dll on Mac? Mac uses dylib.

7
mayobutter•

Spotlight is that bad

28
Daniel15•

You'll have .dll files on Mac if you use .NET Core!

2
naorunaoru•

Fuck, this always makes me want to throw my mac out of the window.

15
justsaying0999•

Yes, Spotlight, I wanted to open chess, which I have never used. Not you know, Chrome, the application I use literally every single day.

10
GreenFox1505•

Google does this for their search autocomplete too.

I think the assumption is "user typed 4 letters, here are the possible completions. user typed 5 letters, all the previous options must have been wrong".

I don't know if I agree with that design, but I think that is the idea.

9
phpdevster•

Yeah it's definitely a shit design, since people tend to type complete words rather than partial words. In OP's example, my fingers will naturally just type out "Daisy". I would have to consciously think about typing out just "Dais" instead of the full word.

2
joshtheimpalerNorton Antivirus came with my computer, so it's good, right?•
7
GudPiggeh•

What's so bad about it? "Apps & features" is Windows 10's replacement for Change or remove a program, they just kept it in for compatibility.

1
joshtheimpaler•

Look at the bottom, at what I was searching for. Also, you're 2 months late.

1
GudPiggeh•

"Apps & features" is Windows 10's replacement for Change or remove a program,

Of course, they replaced it with Apps & features, so they deliberately made it so that comes first when you search for that.

1
HardOff•

My issue is when you open it up and start typing, just for it to delete the first letter you typed.

6
thisaccountisbs•

I'm assuming you use the shortcut and not the mouse to open it?

2
HardOff•

That's right, yeah

2
thisaccountisbs•

I would guess they didn't qa the shortcut much.

1
HardOff•

I have to admit, I'm sympathetic to it. This would be a pain to debug; it doesn't happen often, seems like it might be a race condition, and has no obvious inciting factors.

I bet they've received bug reports, tried to reproduce them, failed repeatedly, and given up.

2
theother_eriatarka•

Steam does the same for me, whenever i search a game on the store it disappear from the suggestions as soon as i type the last lteer

5
Watermelob﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽﷽•

lteer

Maybe the problem is that you misspell it

18
theother_eriatarka•

wow that's an r/excgarated level of misspelling

8
Paulo27•

Google does the same, type 2 words and the first letter of the third and it shows what you want, type another letter? No suggestions at all now.

Seems most search engines just keep getting worse.

3
TingPing•

Android (Google launcher) has a similarly useless application search, I honestly cannot comprehend how such a major OS fails at such a basic task. Gnome's app search for example is perfect.

5
SpaghettHenderson•

The one that always makes me sigh is I type

"Bluetooth"

0 results

sigh "Devices"

1 result: Bluetooth

5
Skutter_OP•
4
IceUck•

I keep running into shit like this on Windows 10. I type in words like 'resolution', 'screen', 'monitor', etc, and none of them bring up the control panel utility to view/change my screen resolution.

4
Skutter_OP•

My favourite is when you search for a program, but the first result is to fucking "search the web", in Bing no less, but the actually result either showed up halfway through typing or is down in the lower results.

3
KenLives•

Hey at least the search works, unlike Windows.

3
Skutter_OP•

Had mixed results with both tbh. I can only ever get both working somewhat acceptably when searching for programs.

1
seabass_bones•

Run disk utility or Onyx for Mac and re-index spotlight. It is working fine if you run maintenance on your system regularly, and spotlight is a fantastic search tool.

2
mspk7305•

Mac OS does a lot of infuriating things...

2
cyanletters•

Looks like a bug. It works fine on my end.

http://imgur.com/a/Q5yXm

2
Skutter_OP•

Yeah, it started working again for me too, I put up another screencap in the comments. I did go forwards and back a few times before taking this post's screenshot though, so there was SOME persistency in the bug.

1