:: locate drive that has directory "?:\\normal\\f" FOR %%d IN (%drives%) DO IF EXIST "%%d:\\%sourcedir%\\f\\." SET "sourcedir=%%d:\\%sourced