When you use Windows Explorer to try to remove the drive:\$WINDOWS.OLD folder from a computer that has been upgraded from an earlier version of Windows to Windows Vista, Windows Explorer crashes. In this scenario, you receive the following error message:
Faulting application Explorer.EXE, version 6.0.5756.0, time stamp 0x452999fb, faulting module SHELL32.dll, version 6.0.5756.0, time stamp 0x4529b38a, exception code 0xc0000005, fault offset 0x000000000000c941, process id 0xbf8, application start time 0x01c6ecae8503dd46.
Note The $WINDOWS.OLD folder is a hidden system folder. Sometimes, this folder has a name other than $WINDOWS.OLD. For example, this folder may be named $WINDOWS.~Q. For information about how to view this folder, see the "More Information" section.
The Disk Cleanup tool (Cleanmgr.exe) is included with Windows Vista. You can use this tool to remove the $WINDOWS.OLD folder together with its contents. To do this, follow these steps:
Click Start
Collapse this imageExpand this image
, and then click Computer.
Right-click the hard disk from which you want to remove the $WINDOWS.OLD folder, and then click Properties.
Click the General tab, and then click Disk Cleanup.
Click Files from all users on this computer.
Collapse this imageExpand this image
If you are prompted for an administrator password or for confirmation, type the password, or click Continue.
In the File to delete list, click to select the File discarded by Windows upgrade check box.
Note Click to clear other check boxes, depending on the other files that you want to remove.
Click OK, and then click Delete Files to confirm that you want to permanently remove the $WINDOWS.OLD folder together with its subfolders and files.
You can use the RD (Remove Directory) command-line command to remove the $WINDOWS.OLD folder together with its contents. To do this, follow these steps:
Click Start
Collapse this imageExpand this image
, type cmd in the Start Search box, right-click cmd.exe in the Programs list, and then click Run as administrator.
Collapse this imageExpand this image
If you are prompted for an administrator password or for confirmation, type the password, or click Continue.
Type cd\, and then press ENTER to change to the root directory of the current drive. Generally, this is drive C.
Type drive:, and then press ENTER to change to the drive from which you want to remove the $WINDOWS.OLD folder. For example, if the $WINDOWS.OLD folder is on drive D, type d:, and then press ENTER.
Note If the command prompt is already at the correct drive, skip this step.
Type rd $windows.old /s, and then press ENTER to remove the $WINDOWS.OLD folder together with its subfolders.
When you are prompted to confirm the removal of the $WINDOWS.OLD folder, type y, and then press ENTER.
For more information about how to use the RD command, type rd /? at a command prompt, and then press ENTER.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
120716
(http://support.microsoft.com/kb/120716/
)
How to remove files with reserved names in Windows
When you upgrade an earlier version of Windows to Windows Vista, the Windows Vista Setup program moves the files and the folders from the original Windows installation to a $WINDOWS.OLD folder. You can access the data in the $WINDOWS.OLD folder after the Windows Vista Setup program is finished. For more information about how the Setup program works, visit the following Microsoft Web site: