A Windows desktop application for searching and optionally replacing keywords across local/remote files and SQL Server databases, built with WPF hosting a Blazor UI via BlazorWebView.
- Search local folders or remote machines (via UNC paths / credentials)
- Recursive subdirectory search
- Filter by file extension
- Plain keyword or Regex search modes
- Case-sensitive / case-insensitive matching
- Optional Replace mode with automatic backups before modifying files
- Import multiple keywords/folders/extensions at once
- Sortable in-app results grid with highlighted matches
- Export results to CSV
- Connect to a SQL Server instance and browse discovered databases/tables
- Keyword Search — search text-like columns (Contains, Exact Match, or Regex)
- Integer Search — search numeric columns (
=,>,<) - Column Name Search — find tables containing specific column names
- Optional Replace mode for safe, primary-key-scoped
UPDATEstatements - Per-database / per-table filtering
- Live progress reporting and result counts
- Export results to CSV
- Light / Dark mode toggle (persisted between sessions)
- Save and reuse connection/search profiles
- Cancel any in-progress search
- Windows 10/11
- .NET 9 SDK (
net9.0-windows) - Microsoft Edge WebView2 Runtime (usually pre-installed on modern Windows)
- SQL Server access (for database search features)
# Clone the repository
git clone <your-repo-url>
cd SearchToolTxt
# Restore dependencies
dotnet restore
# Build
dotnet build
# Run
dotnet run
# Publish and zip
dotnet publish -c Release -r win-x64 --self-contained true `
-p:PublishReadyToRun=true `
-o publish
Compress-Archive -Path publish\* -DestinationPath SearchTool-v1.2.0-win-x64.zip