[Toc][Index]

TEXT - Display text in a batch file

 
 Purpose:    Display a block of text in a batch file. 
             
 Format:     TEXT 
                 . 
                 . 
                 . 
             ENDTEXT 
 
 See also:  ECHO, SCREEN, SCRPUT, and VSCRPUT. 
 Usage 
 TEXT can only be used in batch files. 
 The TEXT command is useful for displaying menus or multi-line messages. 
  TEXT will display all subsequent lines in the batch file until 
 terminated by ENDTEXT.  Both TEXT and ENDTEXT must be entered as the only 
 command on the line. 
 To redirect the entire block of text, use redirection on the TEXT command 
 itself, but not on the actual text lines or the ENDTEXT line.  No 
 environment variable expansion or other processing is performed on the 
 lines between TEXT and ENDTEXT; they are displayed exactly as they are 
 stored in the batch file. 
 You can change screen colors by inserting ANSI escape sequences anywhere 
 in the text block.  You can also use a CLS or COLOR command to set the 
 screen color before executing the TEXT command. 
 The following batch file fragment displays a simple menu: 

 
         @echo off & cls
         screen 2 0
         text
         Enter one of the following:
            1 - Spreadsheet
            2 - Word Processing
            3 - Utilities
            4 - Exit
         endtext
         inkey /k"1243" Enter your selection:  %%key
 
 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs