home *** CD-ROM | disk | FTP | other *** search
- * Program..: QUIT_TO.PRG
- * Author...: Tom Rettig
- * Date.....: November 4, 1983
- * Revised..: January 25, 1984 removed redundant code.
- * Notice...: Copyright 1984 by Ashton-Tate. All rights reserved.
- * Version..: dBASE II, version 2.4.
- * Notes....: Replaces the QUIT TO option missing in 16-bit
- * versions of dBASE II running under MS(PC)-DOS.
- *
- * Establish working environment, and prompt for the filename(s)...
- SET TALK OFF
- CLEAR
- STORE " " TO program
- ACCEPT "QUIT TO <file1> [,<file2>,<file3>,<etc.>] -->" TO program
- *
- * Open the batch file, and write the standard first line...
- SET ALTERNATE TO dBASE.bat
- SET ALTERNATE ON
- SET CONSOLE OFF
- ? "dBASEII %1"
- *
- * Starting with the second line, write the user entries...
- DO WHILE @(",",program) > 0
- ? $(program,1,@(",",program)-1)
- STORE $(program,@(",",program)+1) TO program
- ENDDO
- IF program > " "
- ? "&program"
- ENDIF
- *
- * Write the standard last line which copies the "holding" batch
- * file (dBASE.QTO) over the existing one so that a fresh batch
- * file is used every time a new entry is made into dBASE...
- ? "copy dBASE.QTO dBASE.BAT/v"
- *
- * Close the batch file and quit out of dBASE II...
- * (Execution resumes at the second line in the batch file.)
- SET ALTERNATE OFF
- SET ALTERNATE TO
- QUIT
- * EOF: Quit_to.prg