scripting batch file to open folder then launch PGP script
Posted on 2013-12-19
I'm attempting to run a batch file that does two things:
1. First opens cmd in a peticular folder;
%comspec% /k cd "C:\Program Files (x86)\PGP Corporation\PGP Desktop\"
2. Run a Symantec PGP encryption script. (which has to run in cmd in the folder mentioned above.
pgpwde --add-user --disk 0 -- passphrase --passphrase UserPassword --username newadmin --admin-passphrase AdminPassword!"
The pgp script basically adds a new admin account to the pgp desktop software which I need to do on every laptop in the company. This script i'm working on will be initiated via group policy.
The problem i'm coming across is that I can't quite get the hand off from the first part to the second part down. they each work individually, but I can't seem to get the handoff right after the directory change to launching of the pgp script.
If anyone can help out i'd greatly appreciate it. my scripting is a little weak.