To search inside files on a Windows PC, use Advanced Search in S.A.K. Utility: open the File Management tab, choose the Advanced Search sub-tab, click a folder in the File Explorer: tree, type in Search for:, and click Search. It looks through that folder and all its subfolders. It can also search photo EXIF and GPS data, document properties, ZIP and EPUB contents, and raw bytes.
When to use this
Use this when you remember what a file says but not what it is called, when you need every log file that mentions an error code, or when you want to find photos taken at a certain place or on a certain camera.
What you need
A folder to search. It does not need administrator rights, but it cannot read files your account has no access to. If it skips any, it tells you the search was incomplete, and the log lists each file it could not search and why.
Steps
- Open the File Management tab.
- Choose the Advanced Search sub-tab.
- If you need a different drive, pick it from the list at the top.
- In the File Explorer: tree, click the folder to search. The tree starts closed at the drive or folder chosen above; click the small arrows to open folders.
- Type what you are looking for in Search for:.
- To limit the search to some file types, fill in Extensions:, for example
.txt,.log. - Tick any options you want. They are explained below.
- Click Search, or press
Enter. Stop ends it early. - Click a file in Search Results: to see it in Preview:, with the matches highlighted.
- Use the arrow buttons above the preview to jump between matches.
Double-click a result to open the file. Right-click for Open File, Open Directory, View Metadata, View Properties, and Copy Path. Use Sort: to order results by path, match count, file size, or date.
How it works
A normal search reads each file as plain text and looks for your words, line by line. These options change how it matches:
- Case sensitive treats
Erroranderroras different. - Whole word skips matches inside longer words.
- Regex treats what you type as a regular expression, a small pattern language for matching text.
- Context: sets how many lines to keep before and after each match.
These add other places to look:
- Image metadata searches the EXIF and GPS details in JPG, PNG, TIFF, GIF, BMP, WEBP, and HEIC photos. Try a camera model.
- File metadata searches properties such as title and author in PDF, DOCX, XLSX, PPTX, OpenDocument, and EPUB files, and tags in MP3 files. Other media files only match on their name, size, type, and dates.
- Archive search looks at file names and text inside ZIP and EPUB files.
- Binary/hex reads each file as raw bytes, and reports a byte position instead of a line number. To match exact bytes, also tick Regex and write them like
\x4D\x5A.
Ready-made patterns
Regex Patterns is a menu of common searches: Email addresses, URLs (http/https), IPv4 addresses, Phone numbers, Dates (various), Numbers, Hex values, and Words/identifiers. Tick one or more, then click Search. Clear All turns them off.
Settings
Click Settings at the bottom left to open Search Preferences:
- Max results: the most matches to find. The default is Unlimited.
- Max preview file size: the largest file to show in the preview. The default is 10 MB.
- Max search file size: the largest file to search. The default is 50 MB.
- Default context lines: the default for Context:. It starts at 2.
Good to know
- Ticked patterns replace your text. While anything is ticked under Regex Patterns, the search uses those and ignores Search for:. The button shows a count so you can tell.
- Word and PDF body text is usually not found. These files store their text in a compressed form, so a plain text search rarely matches it. File metadata only searches their properties.
- Large files are skipped. Files over Max search file size: are not searched, so a big log may need a higher limit. ZIP and EPUB files over 100 MB are not opened, and the search says it was incomplete.
- Protected ZIP files. Encrypted entries inside a ZIP cannot be searched, and the search says it was incomplete.
- Mac and Linux disks. Click Scan Disks or Add Raw/Image to add one, then pick it from the list at the top. Searches on these disks only read them, and Open File is turned off.
- Your searches are remembered. Recent searches appear in the Search for: list, and they are saved in the
datafolder next to the program.