CMD script to export the Delphi HKCU registry branches

Just in case anybody else has a use for this: Here is a CMD script that exports the HKCU registry branches for all Delphi versions from XE2 to 13: @echo off setlocal set "OUTDIR=%~dp0registry_exports" if not exist "%OUTDIR%" mkdir "%OUTDIR%" call :ExportBDS 9.0 XE2 call :ExportBDS 10.0 XE3 call :ExportBDS 11.0 XE4 call :ExportBDS 12.0 … Continue reading CMD script to export the Delphi HKCU registry branches

Deleting unwanted entries from the “New” submenu of Windows Explorer

Microsoft Office has the annoying habit of adding itself to various places in the Windows user interface. One of them is the popup menu of the Windows Explorer. It adds one entry for each of the installed programs to the "New" submenu. Have you ever used them? I have only used that submenu for creating … Continue reading Deleting unwanted entries from the “New” submenu of Windows Explorer

Batch wizardry: Finding a subdir in all parent dirs

As an addition to Using my buildtools here is a batch subroutine to find a subdirectory in any of the parent directories of a script: :FindInParents @rem search all parent directories for a subdir and return @rem the full path to that directory in %result% setlocal set parentdir=%1% set subdir=%2% :loop call :GetDir %parentdir% set … Continue reading Batch wizardry: Finding a subdir in all parent dirs