
August 10th, 2004, 10:14 AM
|
 |
Perl Jedi
|
|
Join Date: Mar 2004
Location: New Hampshire
|
|
Quote: | Originally Posted by jfranz I have pgp installed and wanted to make a batch file to execute on a directory automatically. Its a Windows 2k box. Hourly the scripts are being sent with a new file name every hour. I have tried using the c:\* and every other wildcard, but just keep on getting error messages in pgp with file does not exists. Ex: synatx of a good filename c:\test.pgp. How do I get around this. Ultimately I want a script to run hourly that would decrypt the whole directory looking for .pgp files. |
You may want to install perl on your system and work around this issue. If I remember correctly, PGP handles one file at a time when encrypting/decrypting (although I could be wrong). You could have a perl script create an array of the files in the directory where the encrypted files are to get a complete list, and then feed in the names one at a time to the pgp command. If you do use perl, you may also want to check CPAN to see if there is a module to do this already.
Regards,
jlk
|