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