echo off if "%1"=="/?" goto usage if "%1"=="" goto usage d /IWD~[cd $w]Rv %1 %2 %3 %4 %5 %6 %7 %8 %9 goto exit :usage echo Search for and enter the 1st subdir matching one of specified filespecs. echo usage: FD f1 f2 f3.. :exit