home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / acb153b1.zip / acrobat.zi_ / proc_oth.cmd < prev    next >
OS/2 REXX Batch file  |  1997-01-10  |  1KB  |  39 lines

  1. @ECHO OFF
  2. REM CMD File for processing none-archive 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 non-archive file
  23.  
  24. echo 1 >%4%2.CHK
  25. echo 0 >%4%2.DIZ
  26.  
  27. c:\utils\virus\os2scan %1 /NOEXPIRE
  28. if errorlevel 1 goto infected
  29. echo 1 >%4%2.VIR
  30. goto end
  31.  
  32. :infected
  33. echo 0 >%4%2.VIR
  34. del %1
  35. goto end
  36.  
  37. :end
  38. cls
  39.