home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carsten's PPE Collection
/
Carstens_PPE_Collection_2007.zip
/
T
/
THTCK140.ZIP
/
ADS.BAT
next >
Wrap
DOS Batch File
|
1994-06-18
|
2KB
|
49 lines
@echo off
REM *** 4DOS'S FILE FILE EXTENTION
if %@ext[%1]==zip goto zp2
if %@ext[%1]==lzh goto lzh
if %@ext[%1]==arj goto arj
REM *** DOS'S FIND FILE EXTENTION
REM testfile %1 LZH ARJ ZIP
REM IF ERRORLEVEL 4 GOTO END
REM IF ERRORLEVEL 3 GOTO ZIP
REM IF ERRORLEVEL 2 GOTO ARJ
REM IF ERRORLEVEL 1 GOTO LZH
:zp2
REM ****** Below the next 13 lines only WORKS with 4DOS ********************
if exist c:\anti%PCBNODE% C:\UTIL\PKZIP {d %1 @C:\ANTI%PCBNODE%
REM *** This is where I create a file to insert in a ZIp Archive *********
REM *** With the File Name Changed to the Time & Date *******************
REM *** This along with the Echoing of the Current Date and Time *********
REM *** Of the Upload will keep other Boards From Removing ***************
REM *** These ads with a 32 bit CRC checker or by FileName ***************
REM *** Also this will only work when USING 4DOS
COPY C:\PCB\LEGAL.ALL C:\
echo This File was Uploaded to THT at %_time on %_date>>c:\legal.all
STAMP C:\LEGAL.ALL 01-01-1980 00:00:00 >NUL
DEL c:\- \*.NFO
MOVE C:\LEGAL.ALL C:\- \%@date[%_date]%@time[%_time].NFO
goto zip
:arj
goto end
:lzh
goto end
:zip
REM *** Now that the file has been created We use PKZIP with *************
REM *** A changed command line to add these file's to the Archive ********
REM *** Use the PKZIP.CFG to change the "-" to another Character *********
REM *** This will allow you to ad files with the first Character *********
REM *** of "-" or even a Subdirectory ***********************************
if exist %1 C:\UTIL\PKZIP {A {P {r %1 c:\- \*.* >NUL
:end