FIND command for PDFs

October 15, 2009 at 14:03:38
Specs: Windows XP

Trying to build a function into a batch file that will find all the PDF files in a folder with
multiple sub-folders, then move the PDF files to a single folder on another drive.

For example:

@echo off
for %%f in (f:\EDR\Storage\*.pdf) mv %1 e:\pdffiles\

Or something similar that would actually work!!


See More: FIND command for PDFs

Report •

October 15, 2009 at 14:35:44
@echo off
for /R F:\EDR\Storage %%j in (.) do (
  if exist "%%j\*.pdf" move "%%j\*.pdf" "E:\pdffiles" > nul

Report •

October 16, 2009 at 07:09:58
Thanks, Ivo - that did the trick.


Report •

Related Solutions

Ask Question