home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / osdiconf.txt < prev    next >
Text File  |  1996-10-24  |  7KB  |  158 lines

  1. OSDICONF - CREATING MULTIPLE CONFIG.SYS FILES FOR MULTIPLE NEEDS -
  2.            OS/2 WARP
  3. 01/25/96
  4.  
  5. =======================================================================
  6.        Creating Multiple CONFIG.SYS Files for Multiple Needs--
  7.                      All OS/2 Warp Versions
  8. =======================================================================
  9.  
  10. Please Read Entire Document for Full Explanation of Procedures
  11. --------------------------------------------------------------
  12.  
  13. DESCRIPTION
  14.  
  15. In some cases, you might need different CONFIG.SYS files to create 
  16. environments specific to the kinds of work you are doing. For example, 
  17. when you use a laptop computer with a docking station, you might want 
  18. two CONFIG.SYS files--one that supports your laptop and one that 
  19. supports your desktop computer.
  20.  
  21. RESOLUTION
  22.  
  23. You can create different versions of the CONFIG.SYS file and, during 
  24. restart, specify from the Recovery Choices screen, which version the 
  25. system should use. You also can customize the Recovery Choices screen 
  26. to display your customized CONFIG.SYS file choices.
  27.  
  28. The following steps describe how to create and use multiple CONFIG.SYS 
  29. files. In these steps, ? is any unique single alphabetic character 
  30. EXCEPT X, x, C, c, V, or v. These steps use C as the root directory. If 
  31. you installed OS/2 on a drive other than C, replace C in the path name 
  32. with the drive letter of the root directory.
  33.  
  34. 1. Save a copy of the current CONFIG.SYS file.
  35.  
  36.    You can copy the current CONFIG.SYS file to either a diskette or to
  37.    the C:\OS\BOOT subdirectory. If you copy the file to C:\OS\BOOT,
  38.    rename it to CONFIG.?. Be sure to make a note of the new name and
  39.    directory so you can restore it later.
  40.  
  41. 2. Type COPY C:CONFIG.SYS  C:\OS2\BOOT\CONFIG.? and press Enter.
  42.    Customize the new file with the modifications that you need.
  43.  
  44. 3. Copy the customized CONFIG.? file to the current CONFIG.SYS file.
  45.  
  46.    There are two ways to copy the CONFIG.? file. You can enter the Copy
  47.    command at the OS/2 command prompt, or you can create an OS/2 batch
  48.    file that runs during restart AFTER the system processes
  49.    C:\CONFIG.SYS.
  50.  
  51.    Replacing Your CONFIG.SYS File with CONFIG.?
  52.    --------------------------------------------
  53.    If you have only one customized CONFIG.? file, or if you do not plan
  54.    to change between CONFIG.SYS and CONFIG.? often, you might choose to
  55.    copy over CONFIG.SYS with the customized CONFIG.? file. Copying over
  56.    C:\CONFIG.SYS with your customized file replaces the default
  57.    CONFIG.SYS file. The command to copy your customized file to the
  58.    current CONFIG.SYS file is:
  59.  
  60.       COPY C:\OS2\BOOT\CONFIG.? C:\CONFIG.SYS
  61.  
  62.    Using your customized CONFIG.? file as the default file lets you
  63.    restart without selecting a CONFIG.? file at the Recovery Choices
  64.    screen.
  65.  
  66.    You can now restart the system. When you restart, the system
  67.    automatically uses the CONFIG.SYS file in the root directory.
  68.  
  69.    Creating a Batch File to Replace CONFIG.SYS with CONFIG.?
  70.    ---------------------------------------------------------
  71.    If you have several customized CONFIG.SYS files, using the batch
  72.    file allows you to specify the CONFIG.? file you want to use without
  73.    entering multiple copy commands. You can simply change the ?
  74.    character in the batch file, and enter that character at the
  75.    Recovery Choices screen.
  76.  
  77.    a. Create a batch file in the C:\OS2\BOOT subdirectory, and name it
  78.       ALTF1?.CMD (? is the character you used in the name of the
  79.       CONFIG.? file).
  80.  
  81.    b. Put the following command in the batch file:
  82.  
  83.          COPY C:\OS2\BOOT\CONFIG.? C:\CONFIG.SYS
  84.  
  85.    c. Press Ctrl+Alt+Del to restart the system. When the small white
  86.       box appears in the upper-left corner, press Alt+F1 to display the
  87.       Recovery Choices screen.
  88.  
  89.    d. At the Recovery Choices screen, press the key for the ? character
  90.      that is in the name of the CONFIG.? file you want to use.
  91.  
  92.    The system continues the restart using the customized CONFIG.? file.
  93.  
  94.    Note: If you enter a character at the Recovery Choices screen for
  95.          which there is no corresponding CONFIG.? file or ALTF1?.CMD
  96.          batch file, the system returns to the Recovery Choices screen.
  97.  
  98.    Example:
  99.  
  100.    The following shows how to create a CONFIG.SYS file named CONFIG.A,
  101.    and a batch file to copy it during restart. The system is installed
  102.    on drive C. Before starting, save a copy of the current CONFIG.SYS
  103.    file.
  104.  
  105.    a. Type the following and press Enter to copy the system version of
  106.       CONFIG.SYS into a new file called CONFIG.A:
  107.  
  108.          COPY CONFIG.SYS C:\OS2\BOOT\CONFIG.A
  109.  
  110.    b. Change to the C:\OS2\BOOT directory.
  111.  
  112.    c. Edit CONFIG.A to customize it; then save your changes.
  113.  
  114.    d. Type the following and press Enter to create the file, ALTF1A.CMD:
  115.  
  116.          E ALTF1A.CMD
  117.  
  118.    e. Add the following commands to ALTF1A.CMD and save the changes:
  119.       
  120.          COPY C:\OS2\BOOT\CONFIG.A
  121.          C:\CONFIG.SYS
  122.  
  123.    f. Press Ctrl+Alt+Del to restart the system. When the small white
  124.       box appears in the upper-left corner, press Alt+F1 to display the
  125.       Recovery Choices screen.
  126.  
  127.    g. At the Recovery Choices screen, type A.
  128.  
  129. Displaying Your CONFIG.SYS Choice on the Recovery Choices Screen
  130. ----------------------------------------------------------------
  131. You can customize your Recovery Choices screen to display the list of 
  132. customized CONFIG.? files that you created. To customize the Recovery 
  133. Choices screen:
  134.  
  135. 1. Edit the file, C:\OS2\BOOT\ALTF1BOT.SCR. (If you installed OS/2 on
  136.    a drive other than drive C, specify THAT drive.)
  137.  
  138. 2. Add a line for each CONFIG.? file that you created. Each line should
  139.    include the alphabetic character that identifies that CONFIG.? file. 
  140.  
  141.    You can add up to 6 lines of text to the bottom of this file. You
  142.    might also want to include a brief, one-line description of when to
  143.    use that version of the CONFIG.? file. For example, to display the
  144.    option for the CONFIG.A file on the Recovery Choices screen, add the
  145.    following to the file:
  146.  
  147.       C:\OS2\BOOT\ALTF1BOT.SCR
  148.  
  149. ______________________________________________________________________
  150. IBM disclaims all warranties, whether express or implied, including 
  151. without limitation, warranties of fitness and merchantability with 
  152. respect to the information in this document. By furnishing this 
  153. document, IBM grants no licenses to any related patents or copyrights.  
  154. Copyright (c) 1994, 1995 IBM Corporation. Any trademarks and product 
  155. or brand names referenced in this document are the property of their 
  156. respective owners. Consult your product manuals for complete trademark 
  157. information. 
  158.