RWG (Run When Good) September 4, 1990 RWG A Salt Batch File Written By: David Postler Here is a batch file that I find very helpful when running SALT scripts. To use you simply type: rwg and press enter. DO NOT enter the file extension. The file will the standard "SLT" and "SLC" extensions. The file first calls an editor for the script file. After you exit the editor it will try to compile the script file. It will store the results in a file called RWG.ERR and then display the results on the screen. A undocumented feature is that CS will give an errorlevel when the script does not compile. If there is an error it will give the option to break out of the batch file or to edit the script file again. If your editor has options for opening more than one file at a time you can look at the RWG.ERR file to remind yourself of the error. If the file compiles without errors it will run Telix calling the script using the "s" option. After exiting Telix you will have another chance to edit the script file. The batch file should be fairly self explanatory as rem statements were used liberally. Notes I have had some problems with Telix running the script as called. After rereading the manual and checking I cannot see any problems, Suggestions? The editor called in this batch file is Wordstar 5.5. I also welcome any suggestions or comments and will try to answer questions. You can find me on the FidoNet Telix echo or occasionally(once/month) on the Telix BBS. 1 RWG (Run When Good) September 4, 1990 Here is the Batch file to enter: @echo off rem file name rwg.bat rem Public Domain written by David Postler August 31, 1990 rem This program will run a Telix Script and when it compiles rem without errors, it will run Telix with the script. rem Written and tested on a Toshiba 1200HB and DOS 3.3 rem -------------------------------------------------------- rem if no file provided then print help info and quit if not "%1"=="" goto :start echo Enter RWG {filename} and no extension to run goto :end rem -------------------------------------------------------- :start rem add your favorite editor command in the next line ws %1.slt /n rem compile script and store results in the file "rwg.err" cs %1 > rwg.err type rwg.err if not errorlevel 1 goto :runtlx echo If needed press ^C to abort batch file. pause goto start rem -------------------------------------------------------- rem Delete the error file and Run Telix with the script :runtlx del rwg.err telix s%1.slc rem -------------------------------------------------------- rem Reedit option echo If needed press ^C to abort batch file. echo Press any other key to edit again. pause goto :start rem The file end for abort purposes :end 2