How to use wildcard character to batch encrypt all PDF files in a folder by encryptpdf command line application?

HI,

I am orienting myself on buying command line encryptpdf.
I have downloaded the demo version and have a question if it is possible to use wildmarks for the file names? And if so, how to us it.

I have played with the encrypt.bat file but when I try to:

..\encryptpdf.exe -i *William_van_Beuningen.pdf -o WVB_encrypted.pdf -u owner -e 40 -l error.log

I get an the following in the logfile: "Can't open input file *William_van_Beuningen.pdf".

Your help on this would be appreciated, as this would be crucial for me.

If this works I will buy your product.

Kind regards,
Customer
--------------------------------------
You can run following command line to batch encrypt PDF files in D:\temp folder easily,

for %F in (D:\temp\*.pdf) do ..\encryptpdf.exe -i "%F" -o "%~nF_encrypted.pdf" -u owner -e 40 -l error.log

The following command line will encrypt all PDF files in D:\temp folder and subdirectories folders,

for /r D:\temp %F in (*.pdf) do ..\encryptpdf.exe -i "%F" -o "%~dpnF_encrypted.pdf" -u owner -e 40 -l error.log

VeryPDF
--------------------------------------
Thank you for the quick update in the weekend. This actually did work for me (although in the batch file I had to use %% instead of %).

After your update I now have purchased the license.

Kind regards,
Customer
--------------------------------------
Thanks for your kindly information.

VeryPDF

VN:F [1.9.20_1166]
Rating: 1.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
How to use wildcard character to batch encrypt all PDF files in a folder by encryptpdf command line application?, 1.0 out of 10 based on 1 rating

Related Posts

This entry was posted in PDF Security and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!