вівторок, 26 грудня 2023 р.

Move the location of Google Chrome Cache and User Profile folder

The easiet and perhaps a better way to move the cache/profile directory used by Google Chrome to whatever location you want is to create a symbolic link in the original location that points to the new location. Doing it this way, Chrome still thinks it's storing files in the usual location, but that's actually just a symbolic link to another directory in a completely different location. There are no other hacks required while using this method, and the process always works even if Chrome is started differently each time it was started.

This will work on Windows Vista and Windows 7 without any additional software. This should also work on any other OS where you can create a symbolic link. Windows XP users will need to download the Junction utility from Microsoft to be able to do this, instructions on creating a symbolic link in Windows XP are on the download page for thus utility.

Please note that this procedure will delete your exisiting profile, bookmarks, pinned tabs etc.

The procedure as follows:

  1. Close any instances of Google Chrome you may be running. You may also want to quickly run Task Manager to ensure ALL instances are closed. If any instance of Google Chrome is left running, it will prevent you from completing Step 3
  2. Create a directory at some suitable location where you want the cache to go, for example, I use a folder called chrome on my second HD (d:\chrome)
  3. Navigate to where Google Chrome is installed and locate the 'User Data' folder. If installed using the defaults, this should be something similar to C:\Users\{username}\AppData\Local\Google\Chrome\User Data. Move (not copy) the whole User Data directory to the new location. So now in the new location you'll have a User Data directory, like so "d:\chrome\User Data". And the User Data directory will be gone from the original location, because you have just moved it.
  4. Next, open an elevated command prompt (right click the command prompt icon and choose "Run as Administrator"). In the command window, type (using example from above:

?mklink /J "C:\Users\{username}\AppData\Local\Google\Chrome\User Data" "d:\chrome\User Data"

Make sure to replace the {username} with your own user account name. Don't leave out the quotes, they are necessary.

That's it. Google Chrome will now store your profile and cache at the new location.

THX to johnporter29