DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Software

Reply
 
Thread Tools Display Modes
Old 09-29-2018, 09:16 AM   #1
Andrew B.
Staff
 
Join Date: Jan 2005
Location: Los Angeles, California
Posts: 3,807
Default 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
)
)
Just modify the file mask and output path. I used it by making it into a batch file, putting it into the root of the tree I was checking, and double-clicking from within Windows.

https://stackoverflow.com/questions/...-specific-file

   
__________________
fallberry.com
Andrew B. is offline   Reply With Quote
Old 09-29-2018, 12:04 PM   #2
Steve Rindsberg
Staff
 
Join Date: Nov 2004
Posts: 7,023
Default

GeekyNeet. NerdyCool. Love it!

   
__________________
Steve Rindsberg
====================
www.pptfaq.com
www.pptools.com
and stuff
Steve Rindsberg is offline   Reply With Quote
Old 09-29-2018, 09:48 PM   #3
Andrew B.
Staff
 
Join Date: Jan 2005
Location: Los Angeles, California
Posts: 3,807
Default

It was a thrill to find this. I got so excited my pocket protector melted.

   
__________________
fallberry.com
Andrew B. is offline   Reply With Quote
Old 09-30-2018, 09:57 AM   #4
Steve Rindsberg
Staff
 
Join Date: Nov 2004
Posts: 7,023
Default

The tape holding the bridge of my glasses unraveled and stood on end!

   
__________________
Steve Rindsberg
====================
www.pptfaq.com
www.pptools.com
and stuff
Steve Rindsberg is offline   Reply With Quote
Old 09-30-2018, 02:41 PM   #5
terrie
Staff
 
Join Date: Oct 2004
Posts: 9,527
Default

Quote:
steve: unraveled and stood on end!
LOL!!! I hate when that happens! '-}}



Terrie
terrie is offline   Reply With Quote
Old 09-30-2018, 02:41 PM   #6
terrie
Staff
 
Join Date: Oct 2004
Posts: 9,527
Default

Quote:
andrew: I got so excited my pocket protector melted.
LOL!!!


It's a pretty nifty little piece of code...'-}}



Terrie
terrie is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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 04:56 AM
linked file list for indesign? Norman Hathaway Print Production & Automation 2 10-03-2005 07:29 AM


All times are GMT -8. The time now is 02:49 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Contents copyright 2004–2019 Desktop Publishing Forum and its members.