@echo off
for /r "c:\" /d %%a in (*) do (
dir /b /s /a "%%a" | findstr /r ".*" >nul
if errorlevel 1 echo %%a)
--
Marco Maier
Without going into detail, there one 3 chars shorter:
the "/r " is redundant since reg exp is default with findstr.
--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
>>
> Without going into detail, there one 3 chars shorter:
> the "/r " is redundant since reg exp is default with findstr.
Thanks,and this is even shorter:
@echo off
for /r \ /d %%a in (*) do (
dir /b /s /a "%%a"|findstr .>nul
if errorlevel 1 echo %%a)
--
Marco Maier
But the following is better, because it displays folders with
empty subfolders too:
@echo off
for /r \ /d %%a in (*) do (
2>nul dir /b /s /a-d "%%a"|findstr .>nul