Microsoft KB Archive/142096

{|
 * width="100%"|

How to Reinstall Windows 95 to a New Folder

 * }

Q142096

-

The information in this article applies to:


 * Microsoft Windows 95

-

SUMMARY
This article describes how to reinstall Windows 95 to a new folder.

MORE INFORMATION
NOTE: Be sure to disable any anti-virus software or "dirty" TSRs before you run Windows 95 Setup. For information about "dirty" TSRs, please see the following article in the Microsoft Knowledge Base:

"Q139052 'Dirty' and 'Deadly' TSRs Detected by Windows 95" To install Windows 95 to a new folder, you must run Setup from a real-mode command prompt. If you run Setup from within Windows 95, you can reinstall Windows 95 over the existing installation, but not to a new folder. To install Windows 95 to a new folder, use the appropriate method:

Installing from Your Hard Disk
 Click Start, point to Programs, and then click MS-DOS Prompt.  At the command prompt, type the following lines, pressing ENTER after each line: '''cd\

md w95flat'''  Insert the Windows 95 CD-ROM into the CD-ROM drive.  At the command prompt, type the following line, and then press ENTER "copy :\win95\*.* c:\w95flat" where is the drive letter assigned to your CD-ROM drive.  Restart your computer. When you see the "Starting Windows 95" message, press the F8 key, and then choose Command Prompt Only. Make a backup copy and rename the system files in case you decide to return to your original installation of Windows 95. To do so, follow these steps:

 Type the following lines. Press ENTER after each line: To return to your original Windows 95 installation, copy and rename the files listed above to their original names, and then restart your computer.</li></ol> </li>  Type the following line, and then press ENTER. "cd w95flat"</li> Run Setup. Specify a new folder for the Windows 95 installation. Make sure not to use the folder for your current installation of Windows 95.

NOTE: During some installations, you are not offered an option to change the folder in which to install Windows unless you first rename the current Windows folder.</li></ol>

Installing from Windows 95 CD-ROM or Floppy Disks
<ol> Restart your computer. When you see the "Starting Windows 95" message, press the F8 key, and then choose Command Prompt Only.</li> Make a backup copy of the system files in case you decide to return to your original installation of Windows 95. To do so, follow these steps:

<ol style="list-style-type: lower-alpha;">  Type the following lines. Press ENTER after each line: '''attrib -s -h -r msdos.sys

copy msdos.sys *.xxx

copy autoexec.bat *.xxx

copy config.sys *.xxx''' </li> To return to your original Windows 95 installation, copy the files listed above to their original names, and then restart your computer.</li></ol> </li> To install Windows 95 from disks, proceed to step 9.</li> To install Windows 95 from a CD-ROM, the real-mode CD-ROM drivers must be loaded in the Autoexec.bat and Config.sys files. If they are not, continue with these steps. If they are, proceed to step 9.</li> View the Autoexec.dos file and note the line referring to the Mscdex.exe file.</li> View the Config.dos file and note the line referring to the CD-ROM driver.</li> Edit the Autoexec.bat file and add the MSCDEX statement you noted in step 5. Edit the Config.sys file and add the CD-ROM driver line you noted in step 6.</li> After you edit and save the Autoexec.bat and Config.sys files, restart the computer. When you see the "Starting Windows 95" message, press the F8 key, and then choose Command Prompt Only.</li> Run Setup from the original Windows 95 disks or CD-ROM. Specify a new folder for the Windows 95 installation. Make sure not to use the folder for your current installation of Windows 95.</li></ol>

NOTE: When you install Windows 95 to a new folder, you must reinstall all Windows-based programs in the new Windows 95 installation.

Additional query words: clean

Keywords : kbsetup win95

Issue type : kbhowto

Technology : kbWin95search kbWin95