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