FIND command for PDFs

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

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!!

TIA.


See More: FIND command for PDFs

Report •


#1
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 •

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

Regards


Report •

Related Solutions


Ask Question