How to search for C# source code files in Windows File Explorer?

1

I'm trying to find some lost C# source code files on an old external drive.

I believe the file extension for C# source files is .cs.

When I enter in the search file *.cs and begin searching, I find that Windows also finds all files whose extension just begins with cs such as CSS .css files.

How can I use Explorer to find only .cs files and not the others?

hippietrail

Posted 2016-02-23T06:16:08.057

Reputation: 3 699

Answers

2

Search for the exact extension you want, surrounded by quotes ", eg "*.cs".

For example:

enter image description here

enter image description here

Jonno

Posted 2016-02-23T06:16:08.057

Reputation: 18 756

Instead of quotes, use the ext option. ext:xls & so on – Sathyajith Bhat – 2016-02-23T06:34:37.303

2

@Sathya That would still return the ones which match beyond the characters you want, no? http://i.imgur.com/hk1cROo.jpg - You could use quotes and ext though.

– Jonno – 2016-02-23T06:39:53.433