

~ Create a second GUI showing looping progress bar Gui, Destroy Close the first GUI so it doesn't muck up the progress bar Run %comspec% /c pdftk %InputVar%\*.pdf cat output %OutputVar%\combined.pdf,, hide Pass the parameters to pdftk and hide the commandline window on completion MsgBox pdftk %InputVar%\*.pdf cat output %OutputVar%\combined.pdf Use MsgBox to test output to commandline Gui, submit Save the selected folders to their associated variables MsgBox % "Found " count " PDF files`nNow select the OUTPUT folder."įileSelectFolder, OutputVar,, 4 Select a destination folder Count and display the number of files in the source folder for infoįiles:=(files ? "`n" : "").

Gui, Add, Button, x22 y65 w100 h30, CancelįileSelectFolder, InputVar,, 4 Select a source folder Gui, Add, Button, x12 圓0 w120 h30, INPUT Code: Select all Gui, Add, Text, x25 y10 w170 h20, Select INPUT folder
