Solved

Batch File Script to move find and delete *.tif

Posted on 2010-09-08
5
448 Views
Last Modified: 2012-05-10
Hello,

I am trying to write a batch file that will search a particular directory with sub-folders that have both .tif and .pdf's in them. My goal is to be able to run this script that can search a specific directory's sub-folders for all of the .tif files and delete them. Is this possible using a batch file script? Since all of the sub-folders are named differently I am unsure how to account for those variables.

Thanks to all in advance,

Whah
0
Comment
Question by:Whah
  • 3
5 Comments
 
LVL 7

Expert Comment

by:compaqus
ID: 33630082
for /R c:\folder %i in (*.tif) do {command} %i
0
 
LVL 14

Expert Comment

by:Daniel Junges
ID: 33630110
0
 
LVL 7

Accepted Solution

by:
compaqus earned 500 total points
ID: 33630216
this is better :)
FOR /R C:\test\ %%i IN (*.tif) DO del "%%i"
0
 

Author Closing Comment

by:Whah
ID: 33630543
This worked excellent! Nice work and thank you very much for your help it is extremely appreciated.
0
 
LVL 7

Expert Comment

by:compaqus
ID: 33630701
Glad to help!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question