home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / SYSTEM / RESTART2.ZIP / RESTART2.DOC < prev   
Encoding:
Text File  |  1990-06-04  |  4.0 KB  |  131 lines

  1.                    RESTART
  2.  
  3.             Instructions for RESTART2.COM
  4.  
  5. This is the second version of the RESTART.COM program that I wrote in
  6. 1988, one afternoon. RESTART2 is a somewhat more flexible version. As
  7. with RESTART.COM, I contribute this program to the Public Domain. 
  8.  
  9. Tom Almy
  10. toma@tekgvs.labs.tek.com
  11. May 26, 1990
  12.  
  13.  
  14. DESCRIPTION
  15.  
  16. Restart is a system configuration management program. The conflicts
  17. of many device drivers, tsrs, tradeoffs on ramdisks, etc, was driving
  18. me nuts having multiple config.sys and autoexec.bat files to maintain
  19. and copy. Restart maintains all the configurations in a single file,
  20. configur.dat.  This file contains a list of allowable configuration
  21. names followed by descriptions of the contents of any number of files
  22. (typically config.sys and autoexec.bat in the root directory of the
  23. booting drive, but can also be used for command alias files, altering
  24. batch files, etc.). The file descriptions are lines to be included in
  25. the file. Lines can be conditionally included or excluded based on
  26. the configuration name.
  27.  
  28. After the files are created, restart can reboot the system. A time
  29. delay can be specified for systems using staged-write disk caching.
  30. Other options disable the reboot, or writing what would be the file
  31. contents to the display rather than to the files (for debugging).
  32.  
  33.  
  34. THE COMMAND LINE
  35.  
  36. restart 
  37.  
  38. with no arguments gives a short message on the allowed arguments.
  39.  
  40.  
  41. restart config
  42.  
  43. will create files for configuration "config", then reboot the system.
  44.  
  45.  
  46. restart -n config
  47.  
  48. same, but won't reboot the system.
  49.  
  50.  
  51. restart -p config
  52.  
  53. writes what would be the file contents for configuration "config" to
  54. standard output (you might want to pipe the output through MORE).
  55.  
  56.  
  57. restart -4 config
  58.  
  59. delays four seconds before rebooting (any integer delay, in seconds,
  60. can be specified).
  61.  
  62.  
  63. THE CONFIGURATION FILE
  64.  
  65. The configuration file, configur.dat, is expected to be found in the
  66. root directory of the boot drive (It looks at the first character of
  67. the COMSPEC environment variable to decide which drive is the boot
  68. drive). If the environment variable BOOTDRIVE is defined, then the
  69. first character of that variable specifies the bootdrive.
  70.  
  71. The first line of the configuration file specifies the allowable
  72. configurations. Configuration names are separated by apostrophes, and
  73. apostrophes are used at the beginning and end of the line as well. No
  74. spaces or other extraneous characters are allowed.  For instance, my
  75. first line looks like this:
  76.  
  77. '386'med'noram'small'c++'max'c60'
  78.  
  79. listing seven possible configurations.
  80.  
  81. The second line must specify the first file to generate. Lines
  82. specifying files start with an asterisk. File names should be
  83. specified with full drive and pathnames.  My second line is:
  84.  
  85. *c:\config.sys
  86.  
  87. The lines that follow, up until the next file specification line or
  88. end of file, describe the lines which go into that file.
  89.  
  90. If a line starts with a list of one or more configurations, followed
  91. by one or more spaces, then that line is only included for those
  92. configurations.  For instance,
  93.  
  94. 'noram'small' shell=c:\4dos.com /s:dc:\temp /p
  95.  
  96. The line starting at "shell" is only placed into the file if the
  97. configuration is noram or small.
  98.  
  99. A line that starts with a tilde is handled in the same manner, but
  100. with the sense reversed.  For instance,
  101.  
  102. ~'noram'small' shell=c:\4dos.com /s:dk: /p
  103.  
  104. is only placed in the file if the configuration is not noram or
  105. small. In this case, it would be equivalent to:
  106.  
  107. '386'med'c++'max'c60' shell=c:\4dos.com /s:dk: /p
  108.  
  109. By having a line that cannot match any configuration, you can have
  110. comment lines in the configur.dat file:
  111.  
  112. '' THIS IS A COMMENT LINE
  113.  
  114. Finally, a line that starts with neither * ' nor ~ is always written
  115. to the file.
  116.  
  117.  
  118. Here is a small sample configur.dat file:
  119.  
  120. 'clean'small'large'
  121. *c:\config.sys
  122. 'small'large' driver=\sys\mouse.sys
  123. 'large' driver=\sys\fastdrive.sys 1024
  124. 'large' buffers=5
  125. ~'large' buffers=10
  126. *c:\autoexec.bat
  127. 'large' pcshell/r
  128. 'small'large' neattsr/p/q
  129. PATH=\bin;\dos
  130.  
  131.