home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / acb153b1.zip / acrobat.zi_ / proc_arj.bat < prev    next >
DOS Batch File  |  1997-01-10  |  2KB  |  65 lines

  1. @ECHO OFF
  2. REM BAT File for processing ARJ files
  3. REM p1 complete path to file (ex. C:\FILES\UPLOADS\TEST.ZIP)
  4. REM p2 which node? (ex. NODE1)
  5. REM p3 path to files.bbs (ex. C:\FILES\UPLOADS)
  6. REM p4 path bbs (ex. C:\ACROBAT\)
  7. REM <acrobat dir>\TEMP MUST always exist!?!
  8. REM <acrobat dir>\LOCAL MUST always exist!?!
  9. REM You can turn uploadchecking off via ACROBAT.CFG
  10. REM echo y| command, the y means yes. it's used for
  11. REM bypassing the 'Are you sure(y/n)' command. If you
  12. REM are using another language than english, you have
  13. REM to change that y to the equivalent for your lan-
  14. REM guage! For example, for dutch os/2 versions, you
  15. REM have to change y in J because J because the dutch
  16. REM prompt is 'Ben je zeker (J/N) ?'
  17. REM I could all these stuff internally in acrobat, but
  18. REM than i have to swap 4 times... This seems uglier,
  19. REM but it's more efficient... BTW, I like those good
  20. REM old batch processing stuff :)
  21.  
  22. REM Testing arjfile
  23.  
  24. ARJ t %1
  25. if errorlevel 1 goto bad
  26. echo 1 >%4%2.CHK
  27. goto scan
  28.  
  29. :bad
  30. echo 0 >%4%2.CHK
  31. echo 0 >%4%2.VIR
  32. echo 0 >%4%2.DIZ
  33. goto end
  34.  
  35. :scan
  36. ARJ e -y %1 %4TEMP
  37. c:\utils\virus\mcaf\scan %4TEMP /ALL /NOMEM /NOEXPIRE
  38. if errorlevel 1 goto infected
  39. echo 1 >%4%2.VIR
  40. echo y|del %4TEMP
  41. goto diz
  42.  
  43. :infected
  44. echo 0 >%4%2.VIR
  45. echo 0 >%4%2.DIZ
  46. echo y|del %4TEMP
  47. del %1
  48. goto end
  49.  
  50. :diz
  51. ARJ e -y %1 %4TEMP file_id.diz
  52. if errorlevel 1 goto nodiz
  53. echo 1 >%4%2.DIZ
  54. goto adds
  55.  
  56. :nodiz
  57. echo 0 >%4%2.DIZ
  58. goto adds
  59.  
  60. :adds
  61. ARJ a -y /Z%4BANNER.ADD %1 %4RAW2.ADD
  62.  
  63. :end
  64. cls
  65.