|
09-29-2018, 09:16 AM | #1 |
Staff
Join Date: Jan 2005
Location: Los Angeles, California
Posts: 4,353
|
List folders lacking a specific file
There are times when I need to search a file tree to see which folders are lacking a specific file. For example, finding all folders that are missing a file that describes the folder contents. So I found a batch file that can do this.
Code:
@echo off for /d /r %%f in (*) do ( if not exist %%f\test.txt ( echo %%f >>C:\folders.txt ) ) https://stackoverflow.com/questions/...-specific-file |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extract Zips in Multiple Folders (Win) | Andrew B. | Software | 9 | 08-12-2017 10:59 AM |
Comparing Two PDF Folders | RJ Emery | Software | 8 | 05-22-2011 02:28 AM |
CHMOD files versus folders | Andrew B. | Web Site Building & Maintenance | 2 | 06-08-2010 01:38 PM |
Private message folders | iamback | How to Use the Forum | 1 | 11-17-2005 05:56 AM |
linked file list for indesign? | Norman Hathaway | Print Production & Automation | 2 | 10-03-2005 07:29 AM |