Computing.Net > Forums > Programming > FIND command for PDFs

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

FIND command for PDFs

Reply to Message Icon

Name: peterbrown771
Date: October 15, 2009 at 14:03:38 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: October 15, 2009 at 14:35:44 Pacific
Reply:

@echo off
for /R F:\EDR\Storage %%j in (.) do (
  if exist "%%j\*.pdf" move "%%j\*.pdf" "E:\pdffiles" > nul
)


1

Response Number 2
Name: peterbrown771
Date: October 16, 2009 at 07:09:58 Pacific
Reply:

Thanks, Ivo - that did the trick.

Regards


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Copy Paste Files and Fold... Help with VB macros


Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: FIND command for PDFs

ASCII Commands for Serial port www.computing.net/answers/programming/ascii-commands-for-serial-port/7499.html

format command for my version ofDOS www.computing.net/answers/programming/format-command-for-my-version-ofdos/10787.html

Find command www.computing.net/answers/programming/find-command/18454.html