How to print multiple PDF files in different folders?

Pedro

An example would be:

 Folder 1:
  a.pdf
  b.pdf
   Folder11
   c.pdf
  Folder 2:
  a.pdf
  b.pdf
   Folder21:
   c.pdf

printing all files between folders

And the cmd would have a way to find the file only putting part of the words? Example

TEXT : ABC*.PDF

PRINT ABCDF.PDF

FloatingKiwi

1. To loop over multiple files recursively:

FOR /f "tokens=*" %%F in ('dir /s /b *.pdf') DO echo "%%F"
  • dir /s /b *.pfd finds all pdfs (*.pdf), in all subdirectories (/s), in bare format - ie just the path name (/b)
  • DO echo "%%F" just echo's the result to the console.
  • "tokens=*" adds the whole line into %%F regardless of white spaces / other tokens
  • /F makes it run the ('dir ...') command

2. To print from command line use: From this question

AcroRd32.exe /t "C:\Folder\File.pdf" "Brother MFC-7820N USB Printer" "Brother MFC-7820N USB Printer" "IP_192.168.10.110"

Note: Path to AcroRd32.exe must be in your path environment variable

3. Putting it all together -- edit -- 'I've added taskkill to close acrord32 after printing

FOR /f "tokens=*" %%F in ('dir /s /b *.pdf') DO AcroRd32.exe /t "%%~F" "Brother MFC-7820N USB Printer" "Brother MFC-7820N USB Printer" "IP_192.168.10.110" & taskkill /IM AcroRd32.exe

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to cut multiple columns from several files and print the output to different files

How to contribute multiple declaration files and folders to DefinitelyTyped

how to move files to multiple folders?

How to move every 500 files into different folders

How to save log files to different folders in SnowSQL multiple sessions

Unzip multiple zip files into different folders with a particular name

how to print loop plotting into single pdf /multiple pdf files

How to move multiple files to multiple folders in linux?

Ant - How to search for files in multiple folders

How to diff two folders to multiple patch files

How do you compile multiple files in different folders in D?

Excel "Print to PDF" creating multiple files

Modify multiple files in different folders with one command?

How to convert pdf files in multiple folders into multiple pdf files matching the folder names

How to combine multiple files with similar names in different folders by using unix command?

mv multiple files from different folders from specific date

How to write Cmake for multiple .cpp files and headers in different folders ?

Upload Multiple Files From DIfferent Folders

Combine files in multiple folders into one folder on Mac or read multiple files in different folders simultaneously in R

how to access multiple php files in different sub-folders under LAMPP in LINUX

How to rename multiple files in several folders?

How to host multiple websites on different folders on a VPS?

Move multiple files for different folders using Make

How to Check files are present in two different folders

How to move files to different folders based on their prefix?

How to print multiple html files?

How to delete files from multiple folders excluding couple of folders?

Django: how to upload media files to different folders?

how to rename multiple files in multiple folders