Utilities

Click to download

DBWIN32.EXE
From Andrew Tucker: captures OutputDebugString data. Freeware.
DBWIN32.ZIP
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 !!
WINZIP70.EXE
The industry-standard compressor/decompressor program for Win32 (shareware). Shame how Phil Katz never really embraced GUI.
DBW_SCH.ZIP
Grant Schenk's more advanced version of DBWIN32 - permits remote capture of OutputDebugString. Now even a blue screen won't stop you saving that data. Shareware - Check Grants web site for updates.
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

That last one's not as dumb as it sounds, given that Win9x and the NT5 family both have root folders called WINDOWS. Wouldn't want to modify the wrong one on your carefully constructed multi-boot setup now, would we ? Spelunk also allows you to directly open an Explorer window for each one with a single button push. 

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