@ECHO on
SETLOCAL
FOR /f %%i IN (
 'dir /ad /b "C:\" |findstr /I "mongo"'
) DO CALL :movedir %%i

:movedir 
SET "dest=%1"
ECHO MOVE "C:\"%1 "C:\mongodb\"
setx MYPATH "%PATH%;C:\mongodb\bin"

ECHO on
FOR /f %%i IN (
 'dir /ad /b "C:\" ^|findstr /I "mongo"'
) DO CALL :movedir %%i

:movedir 
SET "dest=%1"
ECHO MOVE "C:\"%1 "C:\mongodb\"
setx MYPATH "%PATH%;C:\mongodb\bin"

Revert "Minor change in batch script for finding directory"
Revert "Minor change in batch script for finding directory"

This reverts commit b8b7b5670acb4ac43dedd8893df3f6fc2ba5232b.
