Subj : batch file To : Phil Simpson From : Gerald Miller Date : Fri Oct 11 2002 06:48 am Hello Phil, On Monday October 07 2002 at 20:40, Phil Simpson [1:229/3000] wrote to Gerald Miller, about: batch file PS>> I remember using a batch file many moons ago, to automatically PS>> check/fix my squish message base. Does anyone still have this PS>> critter floating around? GM>> I #_did_# have a batch file kicking around, but 4DOS is my GM>> command interpreter of choice and I converted the DOS batch to a GM>> 4DOS BTM file... Would that be of any help to you? PS> Dang, don't use 4dos. Oh well, back to the drawing board. Thanks PS> anyway. I had a look in an old TUB echomail archive and found this: === Cut Begin: TUB EchoMail === From : Michael Grant 1:134/11 Mar 01 00 21:35 To : All Subj : Squish Message Base Checker =================================================================== Here's a handy little batch file I wrote to automate checking and repair of possibly grunged Squish message bases. I call it CHECK.BAT; all you need to do is switch to your Squish message directory and type CHECK . I built-in responces in case you make a typo and accidentally enter an invalid message area name, as well as a "fatal error" message if the Squish repair utility can't fix the message area. I used SQFIX32.EXE as the repair utility, it can be substituted with SQFIX.EXE. @ECHO OFF if not exist %1.sqd goto wrong sqinfo %1 -e if errorlevel=1 goto error if errorlevel=0 goto finished :error echo. echo ********SQUISH CHECK FOUND ERRORS!******** echo. echo To run The SQUISH FIX Program, pause sqfix32 %1 if errorlevel=1 goto fatal if errorlevel=0 goto fixed :finished echo Message area "%1" is OK! goto out :fatal echo ********FATAL ERROR! MESSAGE AREA "%1" CANNOT BE FIXED!*********** goto out :fixed echo Message Area "%1" has been fixed! goto out :wrong echo Message area "%1" Does Not Exist! Try again. goto out :out .... Never stand between a dog and the hydrant. -+- GoldED/386 3.0.1 + Origin: MikE'S MaDHousE: WelComE To ThE AsYluM! (1:134/11) === Cut End: TUB EchoMail === I hope it's what you're looking for..... My batch is a bit more complicated with the use of a FOR ... IN ... DO and it handles all the message bases. Good luck. Cheers ... Gerald --- GoldED+/386 v1.1.5-21006 * Origin: A sinner can reform, but stupidity is forever. (1:342/512) .