Skip to content
Per edited this page May 6, 2016 · 18 revisions

Welcome to the PerJahnUtils wiki!

This is a collection of small utilities, developed through the last 20 years in my spare time. If you find them useful, I would appreciate feedback.

Most of the utils are console based commands, should be executed from cmd in windows. Many of them are developed in C/C++, and should usually be as fast as Windows APIs allow with little overhead in the application code.

Short description of some of the utils:

copysync Simple util for copying folders, replacing files depending on file name without path. This util is useful when you need to patch a large, deep folder structure with a few new files and cannot be bothered to manually locate every file in the target directory.
cut Saves content from one file to another, by specifying byte offset and length.
cutstring Searches for a start string and end string in a file, and saves the content between the strings to a new file.
delcache Deletes IE cache. Useful to run as a custom build action when compiling web code to make sure you get a fresh IE session without cookies when debugging.
detfs Removes TFS bindings from project files. This should be what VS does when choosing to unbind a project, but this util can operate on a whole folder tree with multiple projects.
du As the classic unix du command, but this version was developed long before the un*x version became useful. Version 1.0 of my util was written for Solaris in 1995, although the platform agnostic code has now been removed.
mgrep Multi grep. A simple string finding util which can search for multiple strings at the same time.
showargs Shows windows command line parameters. Useful when troubleshooting quoted parameters in script files, and to get insight into the argument parser which VS embed in C/C++ programs.
SQLUtil Runs sql commands using ado.net. Contains no magic features or abstraction layers, thus useful for testing a database through raw ado.net api.
tail As the classic unix tail command, but this is a simple windows program with one textbox which displays the appended file content. Useful for monitoring log files, yeah, before Vista that is. In the same way as DOS did, Vista and later Windows OS doesn't update file metadata (last write time, size, ...) when applications call write(), only when applications calls close().
TrimEnd Removes trailing text in a file.
uptime Shows uptime of Windows.

Clone this wiki locally