Video Screencast Help
New Company Name and Logo Announced. Learn More.

PGP Command Line and --output switch along with vbscript

Created: 28 Mar 2013 • Updated: 29 Apr 2013 | 1 comment
This issue has been solved. See solution.

My company is using PGP Desktop on a Windows 2008 box.
We have set up Netshare to encrypt a folder, and the goal is to take files and dump into this folder and encrypt via script.

I am using VBScript....

The comman line in the VBScript to do this operation looks like this::
C:\Program Files (x86)\PGP Corporation\PGP Desktop\pgpnetshare.exe --encrypt f:\test\ccie_ip_address_practice.xlsx --recipient xxxxxxx  --signer xxxxx --passprhase xxxxxx --output F:\Secure_Share\CCIE_IP_Address_Practice.xlsx

But it will not work.
If I take that command and open a CMD window and run directly from there, then PGPNetshare.exe balks and says it doesn't understand the --output switch....says it is invalid.
But the 10.2 documentation shows it as a valid arguement.

So how can I do this via script.

The end plan is to get the script working and then install him as a Service to run automatically anytime a file comes into the source folder (f:\Test\) and move it to the destination folder (f:\secure_share\)

Thanks for anyhelp.

I had posted this in the other forum before I saw the forum that dealt with command line.  Sorry.

Operating Systems:

Comments 1 CommentJump to latest comment

Seth Dunn's picture

Ok, I think I am good.

I need to --unlock the folder in my VBScript first, then I could dump files into the folder and encrypt them.