home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo ---------------------------------------------------------------------------
- echo Es muessen noch die Pfade, die PASSPHRASE und der USERNAME angepasst werden.
- echo ---------------------------------------------------------------------------
- goto ende
-
- set passp=PASSPHRASE
- set area=»/»USERNAME
- set pgppath=m:\utils\pgp
- set pgpdaten=m:\utils\pgp\daten
-
- %pgppath%\pgp CSOUT.TMP -o CSIN.TMP +verbose=0 +batchmode=on -z%passp% >%TMP%pgp.out
- if errorlevel 32 goto error32
- if errorlevel 31 goto corrupt
- if errorlevel 7 goto error7
- if errorlevel 6 goto user
- if errorlevel 1 goto bad
- if errorlevel 0 goto OK
-
- echo UNKOWN ERROR!
- echo UNKOWN ERROR! > CSRESULT.TMP
- type CSOUT.TMP > CSIN.TMP
- goto abschluss
-
- :error32
- echo error32 > CSRESULT.TMP
- goto abschluss
-
- :error7
- echo error7 > CSRESULT.TMP
- goto abschluss
-
- :error2
- echo error2 > CSRESULT.TMP
- goto abschluss
-
- :corrupt
- echo Error 31, File corrupt!
- type %pgpdaten%\corrupt.txt > CSRESULT.TMP
- type CSOUT.TMP > CSIN.TMP
- goto abschluss
-
- :user
- echo Error 6, Stopped at user request!
- type %pgpdaten%\userreq.txt > CSRESULT.TMP
- type CSOUT.TMP > CSIN.TMP
- goto abschluss
-
- :bad
- echo Error 1, Bad signature or armor! Processing...
- if not exist CSIN.TMP goto badarmor
- type %pgpdaten%\badsig.txt > CSRESULT.TMP
- type %TMP%pgp.out
- echo ------------------------------------------------------------------------------ >> CSRESULT.TMP
- type %TMP%pgp.out >> CSRESULT.TMP
- echo ============================================================================== >> CSRESULT.TMP
- echo %area%/unsecure >> CSRESULT.TMP
- goto ende
-
- :badarmor
- type %pgpdaten%\badarmor.txt > CSRESULT.TMP
- type CSOUT.TMP > CSIN.TMP
- pause
- goto abschluss
-
- :ok
- echo OK!
- type %pgpdaten%\ok.txt > CSRESULT.TMP
- echo %area%/secure >> CSRESULT.TMP
- goto ende
-
- :abschluss
- type %TMP%pgp.out
- echo ------------------------------------------------------------------------------ >> CSRESULT.TMP
- type %TMP%pgp.out >> CSRESULT.TMP
- echo ============================================================================== >> CSRESULT.TMP
- echo %area%/error >> CSRESULT.TMP
-
- :ende
- del %TMP%pgp.out
-
- set passp=
- set pgppath=
- set pgpdaten=
- set area=
-