So I can successfully automate the signing of one file… but I may have the need to sign any file in a certain directory during my automation process… here’s what my script looks like:
gpg --batch --passphrase “PASSPHRASE” --local-user “USER” --sign “C:\FOLDERS*.txt”
So in theory, all txt files should be signed… this script works fine if there’s one txt file in the folder. When I have two or more files in the folder I get a response that says:
“usage: gpg [options] --sign [filename]”
I’m assuming this means it finds more than one file, and wants a specific file name. is there a parameter to search more than one file name? or am I going to have to do some sort of for loop?