I currently have a task of determining what drawings have pdf's created from the drawing software...
BUT there are over 5000 drawing folders...
Question in hand.
Is there any cmd commands that I can use to highlight which folders in a directory do not have PDF files in them?
Hopefully you do as if not. My life is going to get very boring... very quickly...
Thanks in advance.
SEARCH FOR FOLDERS WITHOUT PDF FILES
Moderator: DosItHelp
Re: SEARCH FOR FOLDERS WITHOUT PDF FILES
Not sure about your folder structure. My test environment:
- A folder with the test script and 3 subfolders a, b, and c.
- Only folder b contains a PDF file (along with other files)
Output:
Steffen
- A folder with the test script and 3 subfolders a, b, and c.
- Only folder b contains a PDF file (along with other files)
Code: Select all
@echo off &setlocal
for /d %%i in (*) do if not exist "%%~i\*.pdf" echo %%i
pause
Code: Select all
a
c
Drücken Sie eine beliebige Taste . . .