KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q87274: Function of the [RenFiles] Section of SETUP.INF File

Article: Q87274
Product(s): Microsoft Windows 95.x Retail Product
Version(s): WINDOWS:3.1,3.11
Operating System(s): 
Keyword(s): 
Last Modified: 29-OCT-1999

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Windows versions 3.1, 3.11 
-------------------------------------------------------------------------------

SUMMARY
=======

The [RenFiles] section of the SETUP.INF file is used to rename files located in
the Windows SYSTEM subdirectory during the upgrade from Windows 3.0 to Windows
3.1. Renaming these files will prevent them from being overwritten during the
Windows 3.1 setup.

MORE INFORMATION
================

The default [RenFiles] section of the SETUP.INF file on upgrade disk no. 1 is as
follows:

     [RenFiles]
        MIDIMAP.CFG,MIDIMAP.OLD
        ADLIB.DRV,MSADLIB.DRV

The first file in a line (for example, MIDIMAP.CFG) is the file that already
exists in the Windows SYSTEM subdirectory; the second file (for example,
MIDIMAP.OLD) is the name that the first file will be renamed to.

NOTE: Files not in the Windows SYSTEM subdirectory will not be renamed unless the
full path to that file is given.

To rename files in a directory other than the Windows SYSTEM subdirectory, you
must first change directories. The change is made by using two periods (..) to
move down one directory or one period to move up a directory. Also, the change
must be in relation to the directory that you are currently logged to. For
example, if you want to rename the following files

     [drive:]\WINDOWS\SYSTEM\BLUE.TXT
     [drive:]\WINDOWS\WHITE.TXT
     [drive:]\WINDOWS\YELLOW.TXT
     [drive:]\WINDOWS\SYSTEM\GREEN.TXT
     [drive:]\WINDOWS\SYSTEM\BLACK.TXT

     ([drive:] refers to the drive where the Windows files are located)

add the following lines to the [RenFiles] section of the SETUP.INF,
respectively:

     [RenFiles]
     BLUE.TXT,RED.TXT
     ..\WHITE.TXT,PURPLE.TXT
     YELLOW.TXT,CYAN.TXT
     .\SYSTEM\GREEN.TXT,TAN.TXT
     BLACK.TXT,ORANGE.TXT

REFERENCES
==========

"Microsoft Windows Resource Kit," version 3.1, page 107

Additional query words: 3.10 3.11

======================================================================
Keywords          :  
Technology        : kbWin3xSearch kbZNotKeyword3 kbWin310 kbWin311
Version           : WINDOWS:3.1,3.11

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.