Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

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

![]() |
Copy Paste Files and Fold...
|
Help with VB macros
|
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |