home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
mpm1_28.zip
/
adopt.cmd
next >
Wrap
OS/2 REXX Batch file
|
1995-10-05
|
2KB
|
40 lines
/****************************************************************************/
/* */
/* Adopts files in specific areas */
/* */
/* Some preliminary notes: */
/* */
/* Auto Adopt on main page 3 should be turned off. If you have it on this */
/* script isn't needed. This script is only for those folks who only want */
/* to adopt files in specific areas. */
/* */
/****************************************************************************/
'@echo off'
/* AdoptAreas should be a string containing the area tags of the areas you */
/* want to adopt files in. Each area tag should be separated by a space. */
AdoptAreas = '0 17 BBS'
/* LeaveOpen is a flag, if set to 1 the FILES.BBS windows are left open and */
/* the FILES.BBS is *not* saved. If set to 0, the FILES.BBS is saved and */
/* the window is closed. The default is to leave them open. */
LeaveOpen = 1
Do i = 1 To Words(AdoptAreas)
area = Word(AdoptAreas, i)
retVal = MPM_OpenArea(area)
If retVal = 'OK' Then Do
retVal = MPM_AdoptFiles(area)
If retVal <> 'ERROR' & LeaveOpen = 0 Then Do
Call MPM_SaveFilesBBS area
Call MPM_CloseArea area
End
End
End
Exit 0