GPA encryption command

I have working to upload weekly a CSV file in the FTP location of the vendor, and vendor provided me the public key to perform the encryption and the FTP user name and password. My FTP script is working perfectly, I am able to connect in the vendor FTP location without any issue. But the problem is I am getting the following error while I am trying to encrypt the CSV file. From graphical window of GPA, the public key is working and it is encrypting the CSV file but I am trying to make it a script to do the encryption. Please advise.
C:\>gpg -v --import "C:\publickKeyofvendor" --output C:\data.csv.gpg --encrypt C:\Data.csv
gpg: can't open `--output': No such file or directory
gpg: [don't know]: invalid packet (ctb=55)
gpg: read_block: read error: Invalid packet
gpg: import from `C:\\Data.csv.gpg' failed: Invalid keyring
gpg: can't open `--encrypt': No such file or directory
gpg: no valid OpenPGP data found.
gpg: Total number processed: 1
gpg:              unchanged: 1
My objective is to using the vendor provided public key, I will encrypt the CSV file and encrypted CSV file will be uploaded to vendor FTP location.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NVITEnd-user supportCommented:
The import option is used by itself:
gpg  --import "C:\publickKeyofvendor"

Then do your encryption:
gpg --recipient --output C:\data.csv.gpg --encrypt C:\Data.csv

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ipsec600Author Commented:
Excellent thank you NVIT, it works as expected.
NVITEnd-user supportCommented:
Thanks for your update, ipsec600. I'm glad to help. Have a good one.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.