home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
DAYNBR.ZIP
/
UPDATE.BAT
< prev
Wrap
DOS Batch File
|
1985-10-27
|
1KB
|
48 lines
rem - Note: The arguments to this file are calculated in SAMPLE.BAT
rem - They are: %1 = Ann for this Friday
rem - %2 = nnn for this Friday and
rem - %3 = ?nn for last Friday
rem
rem - You should only need to edit the paths in the next three commands to
rem - make this batch file work in your system.
rem
rem - First move the new node list from the mail files area to the BBS root.
rem
cd \bbs\mail\files
mv nodelist.%1 \bbs
cd \bbs
rem
rem - Now make sure we actually got a new node list. We don't want to
rem - process what we don't have.
rem
if not exist nodelist.%1 goto error
rem
rem - OK, it's there. Delete the unpacked node list if it exists. This is to
rem - prevent ARC from interrogating the console for overwrite permission.
rem
del nodelist.%2
rem
rem - Unpack the new node list
rem
arc e nodelist.%1 nodelist.%2
rem
rem - Just in case ARC had a problem. . .
rem
if errorlevel 1 goto exit
rem
rem - Generate new lists
rem
listgen nodelist
rem
rem - Use ROBOT to generate redistribution messages.
rem
robot distribute nodelist.%1
rem
rem - Finally, delete last week's node list files.
rem
del nodelist.%3
goto done
:error
echo Node list archive NODELIST.%1 not found
:done