home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
WRB100B.ZIP
/
MIDNIGHT.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-01-07
|
1KB
|
30 lines
@ECHO OFF
REM
REM This is a sample file showing what you can do with the MIDNIGHT.BAT
REM call that WR-BBS will make if that file is present in the home path.
REM Note that WR-BBS passes the date as MMDDYY when it calls this file.
REM ** SEE WRBBS.DOC **
ECHO.
ECHO.
ECHO ████████████████████████████████████████████████████████████
ECHO ██ ┌────────────────┬───────────────────────────────────┐ ██
ECHO ██ │ MIDNIGHT.BAT │ A utility batch file for WR-BBS │ ██
ECHO ██ ├────────────────┴───────────────────────────────────┤ ██
ECHO ██ │ Database files are being automatically backed up │ ██
ECHO ██ └────────────────────────────────────────────────────┘ ██
ECHO ████████████████████████████████████████████████████████████
ECHO.
ECHO.
IF W%WR-BBS%W==WW GOTO ERROR01
CHDIR %WR-BBS%
COPY *.DAT *.DBK /V > NUL
IF NOT EXIST %WR-BBS%\WRBACKUP\NUL MKDIR %WR-BBS%\WRBACKUP
COPY %WR-BBS%\WRBBSLOG.TXT %WR-BBS%\WRBACKUP\AL%1.LOG
IF EXIST %WR-BBS%\WRBACKUP\AL%1.LOG DEL %WR-BBS%\WRBBSLOG.TXT
GOTO FINISHED
:ERROR01
ECHO ERROR: Environment variable "WR-BBS" not defined.
:FINISHED
ECHO.