FANDOM


@echo off

if not %1.==. goto start
echo. cdd <non-path-dir-name>
echo.  Will scan tree and CD into the first directory that matches the argument.
goto :eof

:start
set abort=
for /r %%i in (.) do (
	call :proc "%%i" %1
	if defined abort exit /b 9993
)

goto :eof

:proc
if /I "%~nx1" neq "%2" goto :eof
cd %~dpnx1\
set abort=1

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.