home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
sqld100p.lzh
/
MECHOFIX.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-11-02
|
2KB
|
57 lines
/* MECHOFIX.CMD : Message ECHo "FIXer" */
/* : by Graham J Stair (October 1992) */
/*
** 1.. You need to change the 'sqlddir' and 'sqldrescan' variables just below.
** 2.. You also need to make sure you have the SQUALID instructions 'RescanFile'
** and 'RescanCmd' set up in your SQUISH.CFG, and ensure the 'sqldrescan'
** variable points to the same file as the 'RescanFile' instruction.
** 3.. Change the variable 'sqshpack' to the command you want to execute to
** pack up your outgoing mail.
** 4.. Delete all these comments. They only slow things down.
**
** IF IT DON'T WORK, FIX IT! OR LOSE IT!
*/
trace off
'@echo off'
/* Change this to reflect your SQUALID directory */
sqlddir = "C:\SQUALID"
/* Change this to reflect the SQUALID RescanFile instruction */
sqldrescan = "C:\SQUALID\SQRESCAN.CMD"
/* Change this to execute a "pack" on your system */
sqshpack = "C:\SQUISH\SQUISHP SQUASH"
savedir = directory()
call directory(sqlddir)
/* This call to SQUALID assumes you have the SQUISH environment */
/* variable setup prior to calling MECHOFIX */
'squalidp auto'
sqldrc = rc /* Save the return code for further use */
/* This next bit assumes you have these two SQUALID instructions
** in your SQUISH.CFG....
**
App Squalid RescanFile c:\squalid\sqrescan.cmd
App Squalid RescanCmd SQUISHP RESCAN
**
*/
result = stream(sqldrescan, 'c', 'query exists')
if (result <> "") then
do
'call 'sqldrescan
'del 'sqldrescan
end
/* Only pack IF a rescan was done, or netmail was generated! */
if (result <> "") | (bitand(sqldrc, 2) > 0) | (bitand(sqldrc, 4) > 0) then
sqshpack
call directory(savedir)