Utilities

My new host doesn't permit the upload of zips or exes, so these downloadable files have had their extensions modified so as not to trip their worry-ware. Change xex to exe, and piz to zip, and you're good to go.

Click to download

DBWIN32.zip
From Andrew Tucker: captures OutputDebugString data. Freeware (Full source, plus EXE, in ZIP format.).
DOSHERE.EXE
Contains an INF that when installed puts a "Command Prompt Here" entry in the Explorer context menu for folders. So wildly successful, Microsoft stole the idea and put it into the Windows Explorer. Kept here so you can use the original tool on older versions of Windows.
REG2.EXE
Microsoft's command line registry editing tool - handy for creating batch files that modify the registry. Use at your own risk !!
DELSUB.EXE

I needed this, so I wrote it. It's a console app that deletes all files ending in a given extension in the current folder and all folders below it. I used some MFC classes, so it needs MFC42.DLL. I know, colour me idle <g>. Put the EXE somewhere on your path, then just issue the command

delsub obj

to delete all *.obj files under your current folder location. Mega-useful when cleaning up code folders, and to prevent your nightly backups storing useless big files like BSC, NCB, SDF and PCH.

24th March 2006 - I noticed this utility doesn't delete read-only files when I was cleaning out some some old stuff managed with SourceSafe, so I fixed that little nit. Now no file is safe :-)

DETAB.EXE
I wrote this utility - it's useful when taking over a project from people who insisted on using tabs to layout their code (i.e. bozos). Visual C can be set to replace tabs with spaces, but that setting only applies to new tabs added from then on - you're stuck with the existing ones.

It's a simple command line utility which replaces tabs with a variable number of spaces. takes a command line of DETAB <filespec> [n] where filespec may include wildcards (in which case all matching files in the folder will be detabbed) and n is the number of spaces to use when replacing tabs. If n is omitted, a value of 3 is assumed. e.g.

detab *.cpp
detab *.pas 2
detab mainfrm.cpp
detab d:\myfiles\*.cpp
detab "d:\Folder name with spaces\*.cpp"

are all valid command lines. Doesn't support UNC I'm afraid, and doesn't recurse into subdirs for technical reasons having to do with the way FindNextFile works when you're modifying the folder contents as you go along.

SPELUNK.EXE

A handy little thing for people who work with multi-boot systems and different flavours of Win32. This tells you the locations of four vital folders, correct for the copy of windows you're running and the currently logged-in user. These are

Temporary Internet Files
Desktop
Favorites
Windows root folder

This utility is particularly handy for Windows support people who aren't sure which of the somebody.XXX's they're currently logged in as. Note - Requires MFC42.DLL