for /f " usebackq delims= " %i in (`net file ^| find /i ".mdc"`) do net file %i /close