How to save the C drive with insufficient space?

Table of contents

Steps:

Determine the location of the software post-installation

Modify the registry

verify

experience


Steps:

Determine the location of the software post-installation

It is recommended to choose a disk with more hard disk memory (I chose D disk)

Then copy D:\programs

 

Modify the registry

Open the Registry Editor

双击HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows>CurrentVersion

Four key values ​​that need to be modified

CommonFilesDir、CommonFilesDir(x86)

Indicates the location where some cache files of this program are written

Then modify the value data of the key value to D:\programs

 

 

ProgramFilesDir、ProgramFilesDir(x86)

Indicates the installation location of this program

Then modify the value data of the key value to D:\programs

 

 

after modification

Appendix: x86 is the installation location of 32-bit programs, and no x86 is the installation location of 64-bit programs

verify

Verification steps: restart the computer > install the software > the default installation location will be changed to the programs folder you created

Test with an installation package, open the installation package

You will find that the default position has changed to your changed position, which is why we have to modify it, just change this

 

.........

.........

.........

But you will find that when you click on the desktop Microsoft edge, you will find that it cannot be opened

This requires you to change the path before the change and copy the folder corresponding to the software.

Copy the folder corresponding to the software

 

Copy to the changed path

 

 The desktop application can be opened

Why is this happening? ? ?

Because the previously installed software is installed in the C drive folder by default, you changed the location before, so you need to move to D:\programs, and the desktop picture can be opened (equivalent to the furniture you bought before when you moved. , if you want to continue using it, do you have to move from the old place to the new place). Therefore, this method is not recommended for systems that have already installed a lot of software. It is too troublesome to move around. It is better to reinstall the system and arrange the installation location.

experience

This convenience is not suitable for systems with too many software installed, but for systems that have just been installed, and the capacity of the C drive is small/there are not many software

So please use this method with caution, use with caution, use with caution, use with caution

Guess you like

Origin blog.csdn.net/qq_64039239/article/details/126355691