Skip to content

Using FileSharper

Andrew Vardeman edited this page Feb 11, 2018 · 15 revisions

Introduction

Without adding any custom code to FileSharper, you can use it as a general-purpose file search and processing tool with features found in DOS and UNIX command-line tools. You can define searches that mix and match search conditions and apply a chain of processing steps much as you would do with a command-line script. What follows is an overview of how to set up and run a FileSharper search.

Launching FileSharper

FileSharper binaries are currently being published via ClickOnce to http://www.flamingtortoise.com/FileSharper/Download. If you have installed FileSharper, you should be able to launch it from the Start menu.

If you plan to add functionality to FileSharper or don't trust the binaries, you should be able to clone the repository, open the solution in Visual Studio, set FileSharper as the startup project, and click "Start" to build and run. (The first build may take a while because NuGet packages must be downloaded.)

FileSharper will look something like this: FileSharper at startup

Selecting a File Source

FileSharper allows you to select a "file source," which provides the list of files to test and process. Typically, to search through the filesystem, you will select "Directory Search." By default, this will search your entire C drive recursively for all non-hidden and non-system files:

Directory Search

You can modify the search directory, the file pattern, and other settings in the property editor. To change the directory, you can manually edit the path or click the "..." button to use a standard Windows file open dialog.

There are other, more special-purpose file sources available for searching through a known list of files. The "File" file source will read that list from a file, and the "List" file source will allow you to enter the file list in a textbox.

Specifying the Search Condition(s)

You can specify zero or more search conditions for matching files. If you don't specify a search condition, every file provided by the file source will be treated as a match. You can, instead, select a single condition from the menu or select a compound condition like "All" or "Any" to specify a list of conditions to test. The condition menu looks like this:

Condition Menu

Clone this wiki locally