Find directory without files Windows -
i have directory tree. how list of directories without file xyz.xml using example batch scripting or windows browser? //if possible want save list of directories in excel file.
i have tried answer or tips, there unix, work on windows 10.
change file want check , root directory @ beginning of script.
@echo off set "root_dir=." set "file=xyz.xyz" /d /r "%root_dir%" %%# in (*) ( if not exist "%%#\%file%" echo %%# )
for not recursive search:
@echo off set "root_dir=." set "file=xyz.xyz" pushd "%root_dir%" /d %%# in (*) ( if not exist "%%~f#\%file%" echo %%~f# ) popd
Comments
Post a Comment