home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 August / PCO0897.ISO / filesbbs / dos / cs271.arj / PGP.BAT < prev    next >
Encoding:
DOS Batch File  |  1994-05-19  |  2.2 KB  |  86 lines

  1. @echo off
  2. echo ---------------------------------------------------------------------------
  3. echo Es muessen noch die Pfade, die PASSPHRASE und der USERNAME angepasst werden.
  4. echo ---------------------------------------------------------------------------
  5. goto ende
  6.  
  7. set passp=PASSPHRASE
  8. set area=»/»USERNAME
  9. set pgppath=m:\utils\pgp
  10. set pgpdaten=m:\utils\pgp\daten
  11.  
  12. %pgppath%\pgp CSOUT.TMP -o CSIN.TMP +verbose=0 +batchmode=on -z%passp% >%TMP%pgp.out
  13. if errorlevel 32 goto error32
  14. if errorlevel 31 goto corrupt
  15. if errorlevel 7 goto error7
  16. if errorlevel 6 goto user
  17. if errorlevel 1 goto bad
  18. if errorlevel 0 goto OK
  19.  
  20. echo UNKOWN ERROR!
  21. echo UNKOWN ERROR! > CSRESULT.TMP
  22. type CSOUT.TMP > CSIN.TMP
  23. goto abschluss
  24.  
  25. :error32
  26. echo error32 > CSRESULT.TMP
  27. goto abschluss
  28.  
  29. :error7
  30. echo error7 > CSRESULT.TMP
  31. goto abschluss
  32.  
  33. :error2
  34. echo error2 > CSRESULT.TMP
  35. goto abschluss
  36.  
  37. :corrupt
  38. echo Error 31, File corrupt!
  39. type %pgpdaten%\corrupt.txt > CSRESULT.TMP
  40. type CSOUT.TMP > CSIN.TMP
  41. goto abschluss
  42.  
  43. :user
  44. echo Error 6, Stopped at user request!
  45. type %pgpdaten%\userreq.txt > CSRESULT.TMP
  46. type CSOUT.TMP > CSIN.TMP
  47. goto abschluss
  48.  
  49. :bad
  50. echo Error 1, Bad signature or armor! Processing...
  51. if not exist CSIN.TMP goto badarmor
  52. type %pgpdaten%\badsig.txt > CSRESULT.TMP
  53. type %TMP%pgp.out
  54. echo ------------------------------------------------------------------------------ >> CSRESULT.TMP
  55. type %TMP%pgp.out >> CSRESULT.TMP
  56. echo ============================================================================== >> CSRESULT.TMP
  57. echo %area%/unsecure >> CSRESULT.TMP
  58. goto ende
  59.  
  60. :badarmor
  61. type %pgpdaten%\badarmor.txt > CSRESULT.TMP
  62. type CSOUT.TMP > CSIN.TMP
  63. pause
  64. goto abschluss
  65.  
  66. :ok
  67. echo OK!
  68. type %pgpdaten%\ok.txt > CSRESULT.TMP
  69. echo %area%/secure >> CSRESULT.TMP
  70. goto ende
  71.  
  72. :abschluss
  73. type %TMP%pgp.out
  74. echo ------------------------------------------------------------------------------ >> CSRESULT.TMP
  75. type %TMP%pgp.out >> CSRESULT.TMP
  76. echo ============================================================================== >> CSRESULT.TMP
  77. echo %area%/error >> CSRESULT.TMP
  78.  
  79. :ende
  80. del %TMP%pgp.out
  81.  
  82. set passp=
  83. set pgppath=
  84. set pgpdaten=
  85. set area=
  86.