merge entire folder with (n) PDF files with command line

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-Tools.

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

Richi
User
Posts: 3
Joined: Fri May 16, 2025 12:19 pm

merge entire folder with (n) PDF files with command line

Post by Richi »

Hello everyone, I use the following cmd line which I have researched.

wsh.Run "cmd.exe /C start PDFXTools.exe /RunTool:showui=no;showprog=no pdft.tool.splitMergePDF C:\TEMP\T1.pdf C:\TEMP\T2.pdf /Output:folder=C:\TEMP\Output\;filename=Mergetest.pdf;showfiles=no;overwrite=yes"

This code basically works for me via a VBA code in MS Excel but I want to merge an entire folder with (n).pdf files.
Is it possible to merge the contents of a folder without listing the individual files in the Command Line?

...ft.tool.splitMergePDF C:\TEMP\*.pdf /Output:folder..... is not working.

I've tried to understand the command line options but I'm having trouble with them. :roll:
Many thanks in advance
User avatar
rakunavi
User
Posts: 1673
Joined: Sat Sep 11, 2021 5:04 am

Re: merge entire folder with (n) PDF files with command line

Post by rakunavi »

Hello Richi,

You might try specifying the input as a folder as shown below.

  • wsh.Run "cmd.exe /C start PDFXTools.exe /RunTool:showui=no;showprog=no;subfolder=no pdft.tool.splitMergePDF C:\TEMP /Output:folder=C:\TEMP\Output\;filename=Mergetest.pdf;showfiles=no;overwrite=yes"
Best regards,
rakunavi
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
Richi
User
Posts: 3
Joined: Fri May 16, 2025 12:19 pm

Re: merge entire folder with (n) PDF files with command line

Post by Richi »

Hallo rakunavi, hat leider nicht funktioniert. Ich schaffe es nur wenn ich die Files einzeln aufzähle.
Bei deiner Variante wird zwar die PDFXTools angestoßen jedoch kommt kein Output File raus.


Möglichkeit2 über *.pdtfl File funktioniert auch nicht, weißt du warum?

wsh.Run "cmd.exe /C start PDFXTools.exe /RunTool:showui=no;showprog=no pdft.tool.splitMergePDF C:\TempBuilder\_files.pdtfl /Output:folder="C:\Users\meinuser\Desktop\Zwischentemp\Test Export\;filename=FE0067_2_+TUA_NRN37_NVA01.pdf";showfiles=no;overwrite=yes"

Ich habe mir ein pdtfl Files gebastelt und will diese 2 PDF Files mergen und im Order Test Export abspeichern.
Ich denke es wir nichts an die PDFXTools.exe übergeben. Weiß jemand wieso?
Beispiel.jpg
You do not have the required permissions to view the files attached to this post.
Richi
User
Posts: 3
Joined: Fri May 16, 2025 12:19 pm

Re: merge entire folder with (n) PDF files with command line

Post by Richi »

Ok habe die Möglichkeit 2 zum laufen gebracht. Folgende Änderungen waren notwendig


"cmd.exe /C start PDFXTools.exe /RunTool:showui=no;showprog=no pdft.tool.splitMergePDF "C:\TempBuilder\_files.pdtfl" /Output:folder="C:\Users\atuhammeri1\Desktop\Zwischentemp\Test Export\;filename=FE0070_2_+TUA_NRN37_NVA01.pdf";showfiles=no;overwrite=yes"
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11029
Joined: Wed Jan 03, 2018 6:52 pm

Re: merge entire folder with (n) PDF files with command line

Post by Daniel - PDF-XChange »

Hello, Richi

I am very glad to hear you were able to get things working, and thank you Rakunavi for helping out here!

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com