home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 60.img / VMOS.ZIP / VMOSAUTO.BAT < prev    next >
DOS Batch File  |  1990-01-17  |  1KB  |  41 lines

  1. echo off
  2. cls
  3. rem    This batch file displays the Vmos/3 "hello" screen and does PROMPT setup.
  4. rem    It is executed for each DOS Session created.
  5. rem
  6. rem    The Task ID is passed as the single parameter, e.g., VMOSAUTO 3. 
  7. rem    (Note the %1 below... the parameter 3 replaces the %1 for this example)
  8. rem
  9. rem    The file HELLO is displayed, if found in \VMOS, and  
  10. rem    the PROMPT is set, and
  11. rem    NEWTASK.BAT is executed if it is found in \VMOS.
  12. rem    See the sample NEWTASK.BAT provided for useful startup examples.
  13. rem    NEWTASK.BAT is where DOS commands from AUTOEXEC.BAT should be placed
  14.  
  15. rem    In the event you want to install Vmos/3 in a directory other than \VMOS,
  16. rem    be sure to change the IF EXISTs below to reflect your chosen directory.
  17.  
  18.  
  19.  
  20. rem  If the HELLO file is found, it will be displayed here
  21.  
  22. IF EXIST   \VMOS\HELLO    TYPE \VMOS\HELLO
  23.  
  24.  
  25.  
  26. rem  Change the PROMPT below, if desired.  Examples are:
  27. rem       $p$_        current directory (cd) with cursor alone on next line
  28. rem       $p$g        cd with cursor on same line
  29. rem       $p$_$g      cd with cursor on next line
  30. rem       $p$_$n:$g   cd with cursor after drive letter on next line
  31.  
  32. PROMPT Vmos(%1) $p$_$n:$g
  33.  
  34.  
  35.  
  36. rem  If the NEWTASK.BAT file is found, it will be executed with the
  37. rem  Task ID as a parameter.
  38.  
  39. IF EXIST   \VMOS\NEWTASK.BAT    \VMOS\NEWTASK %1
  40.  
  41.