Menu
  • HOME
  • TAGS

How can I programmatically use Windows File Explorer to perform a Search?

c#,wpf,explorer,file-search

You can use the .ms-search file format to express a saved search. If you open this file format it will launch a File Explorer with the search conditions applied. If you already have a File Explorer window opened with a search applied, you can save that using the 'save search'...

Using Scanner to display entire line if the line contains any part of a string match (Java)

java,arraylist,hexdump,computer-forensics,file-search

public class Test { private static ArrayList<String> JPGHeaders = new ArrayList<String>(); private static ArrayList<String> JPGTrailers = new ArrayList<String>(); private static ArrayList<String> entireTextFile = new ArrayList<String>(); public static void main (String[] args) { Scanner scanner = new Scanner(new File("C:\\HexAnalyser\\HexDump\\fileTest.txt")); while (scanner.hasNextLine()) { String line = scanner.nextLine(); if(line.contains(Constants.JPGHEADER)) { JPGHeaders.add(line); }...

Multiple Threads searching on same folder at same time

c#,multithreading,file-search

Instead of using ordinary foreach statement in doing your search, you should use parallel linq. Parallel linq combines the simplicity and readability of LINQ syntax with the power of parallel programming. Just like code that targets the Task Parallel Library. This will shield you from low level thread manipulation and...

Searching for the change history of partial file or path in Mercurial or TortoiseHg

mercurial,tortoisehg,file-search

I can very much advise using the hg help system for this. The most useful pages to look at (in my view): hg help revsets hg help filesets hg help patterns In the page about patterns, you can find about 'path:': To use a plain path name without any pattern...