How to move the “C:\users\username\AppData” folder to another drive from C:\ drive?

Table of Content

How to move the "C:\users\username\AppData" folder to another drive from C:\ drive?

Hi

Welcome to the Microsoft community.

You can follow the steps below to transfer the AppData folder.

Open the registry, then locate to

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

and

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Image

Double-click AppData in the 1 and 2 directories and change the path to the folder directory you want to transfer in the pop-up box.

Then copy all the data in the original AppData directory to whichever directory you modified, and finally restart your computer.

You could try to delete the AppData directory of the original disk, some software may be affected.

Disclaimer: Generally, modifying registry subkeys or work group is intended for advanced users, administrators, and IT Professionals. It can help fix some problems, however, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For further protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click here to view the article.https://support.microsoft.com/en-us/topic/how-to-back-up-and-restore-the-registry-in-windows-855140ad-e318-2a13-2829-d428a2ab0692

Edit

Before you edit registry, you should copy the contents of the Appdata folder to the drive you intend to change to avoid errors in some applications.

I use robocopy to do this, remember to run as administrator

Here is the command I use, remember to remove the shortcuts too, I used to fall into a loop of copying data in shortcuts when using robocopy until the drive is full =))

Ah, remember to backup the registry too (important!!!)

robocopy "C:\Users\soiqu\AppData\Local" "E:\AppData\Local" /MIR /XF *.lnk /XD "C:\Users\soiqu\AppData\Local\Application Data" /XD "C:\Users\soiqu\AppData\Local\History" /XD "C:\Users\soiqu\AppData\Local\Temporary Internet Files" /XD "C:\Users\soiqu\AppData\Local\Packages" /XD "C:\Users\soiqu\AppData\Local\pip"

References

  1. https://answers.microsoft.com/en-us/windows/forum/all/how-to-move-the-cusersusernameappdata-folder-to/35e0e881-6e66-4905-9f63-bd99477586b4

Leave a Reply

Your email address will not be published. Required fields are marked *