COMMAND
-------

Format:        COMMAND [command]

Purpose:       Invokes another copy of the command interpreter.

Use:           The  optional  command parameter is any  VT-DOS 
          command  that  would  normally be typed  in  at  the 
          prompt.

               The  command interpreter is a transient command 
          that normally gets loaded and executed automatically 
          when  VT-DOS is booted,  and it is this that  prints 
          the normal prompt,  allows commands to be typed  in, 
          and  provides  the ability to load and execute  .COM 
          transient commands and .BAT batch files.

               By giving the COMMAND command,  another copy of 
          the  command interpreter can be loaded and  executed 
          which  will  run 'under' the  first  one.  When  the 
          second one is exited, the first one will be returned 
          to.

               The  main  use of this is to nest batch  files. 
          Normally,  if the name of a batch file is given as a 
          command  in  another batch file,  then  the  'inner' 
          batch file is loaded and executed in the normal way, 
          but when it ends the command interpreter is returned 
          to and another prompt is printed. 

               If however the 'inner' batch file is invoked by 
          specifying it as the parameter to a COMMAND command, 
          then  the 'outer' batch file will load and  run  the 
          COMMAND.COM  file  rather than the batch  file,  and 
          when  the COMMAND command ends the batch  file  will 
          continue.  It does not know what the COMMAND command 
          does,  and  the fact that it runs another batch file 
          is not important.

               If  no  parameter is specified on  the  COMMAND 
          command,  then the 'inner' command interpreter  will 
          just  print  the  prompt  in  the  normal  way,  and 
          commands can be typed in.  It will only exit back to 
          the   'outer'  command  interpreter  when  the  EXIT 
          command is given.

               Another  use  of the COMMAND  command  is  with 
          programs  that have the ability to load and  execute 
          other  programs.  For example,  the Wordstar program 
          (WS.COM) has an 'R' command that can be given to run 
          another program.  When that program exits,  Wordstar 
          will be returned to.  By specifying the  COMMAND.COM 
          program,  the command interpreter can be invoked and 
          any VT-DOS command given.

               See also HELP EXIT.

Examples:

          COMMAND

          COMMAND MYFILE.BAT
