home *** CD-ROM | disk | FTP | other *** search
/ Carsten's PPE Collection / Carstens_PPE_Collection_2007.zip / T / THTCK120.ZIP / ADS.BAT next >
DOS Batch File  |  1994-06-13  |  2KB  |  46 lines

  1. @echo off
  2. REM *** 4DOS'S FILE FILE EXTENTION
  3. if %@ext[%1]==zip goto zp2
  4. if %@ext[%1]==lzh goto lzh
  5. if %@ext[%1]==arj goto arj
  6.  
  7. REM *** DOS'S FIND FILE EXTENTION
  8. REM testfile %1 LZH ARJ ZIP
  9. REM IF ERRORLEVEL 4 GOTO END
  10. REM IF ERRORLEVEL 3 GOTO ZIP
  11. REM IF ERRORLEVEL 2 GOTO ARJ
  12. REM IF ERRORLEVEL 1 GOTO LZH
  13.  
  14.  
  15. :zp2
  16. if exist c:\anti%PCBNODE% C:\UTIL\PKZIP {d %1 @C:\ANTI%PCBNODE%
  17. REM  ***  This is where I create a file to insert in a ZIp Archive *********
  18. REM  ***  With the File Name Changed to the Time & Date  *******************
  19. REM  ***  This along with the Echoing of the Current Date and Time *********
  20. REM  ***  Of the Upload will keep other Boards From Removing ***************
  21. REM  ***  These ads with a 32 bit CRC checker or by FileName ***************
  22. REM  ***  Also this will only work when USING 4DOS
  23. COPY C:\PCB\LEGAL.ALL C:\ /q
  24. echo           This File was Uploaded to THT at %_time on %_date>>c:\legal.all
  25. STAMP C:\LEGAL.ALL 01-01-1980 00:00:00 >NUL
  26. DEL c:\- \*.NFO /q
  27. MOVE C:\LEGAL.ALL C:\- \%@date[%_date]%@time[%_time].NFO /q
  28. goto zip
  29.  
  30.  
  31. :arj
  32. goto end
  33. :lzh
  34. goto end
  35.  
  36. :zip
  37. REM  ***  Now that the file has been created We use PKZIP with *************
  38. REM  ***  A changed command line to add these file's to the Archive ********
  39. REM  ***  Use the PKZIP.CFG to change the "-" to another Character *********
  40. REM  ***  This will allow you to ad files with the first Character *********
  41. REM  ***  of "-" or even a Subdirectory  ***********************************
  42.  
  43. if exist %1 C:\UTIL\PKZIP {A {P {r %1 c:\- \*.* >NUL
  44. :end
  45.  
  46.