There are two ways of doing this:
The first type:
Under Windows 7, you can use the Mklink command to set the cache location of your Chrome browser to the folder path you want.
The default cache file for Chrome browser is:
Cc:\users\ Login user name \appdata\local\google\chrome\user Data\default\cache
If you want to specify the location of the cache file to be stored in:
D:\Chrome\Cache
Then, you can delete the Chrome default cache folder, then type "cmd" in the "Start → search box", right-click the CMD program, run as administrator, and then at the command prompt, type the following command:
MKLINK/D "C:\Users\ login user name \appdata\local\google\chrome\user data\default\cache" "D:\Chrome\Cache".
Cons: Mlink reaction failure
The second type:
Q: Google Chrome is popular because of its simplicity, speed, and no crashes, but its user data and browse cache paths cannot be changed and are saved by default on the C drive. How can I change these two paths under Win 7?
A: Modify these two paths so that they are stored on a non-system disk, and then after reloading the system, chrome data (cookies, bookmarks, history, passwords) will not be lost! Good idea! Operation Method--
1) Right click on the "Google Browser" shortcut icon on the Win 7 desktop and click Properties in the context menu.
2) A window will pop up, click on the "Shortcuts" tab, click on the "Target" input box and move the cursor to the end of the text, then add the following text:
┖┚--user-data-dir= "P: Directory" ┖┚--disk-cache-dir= "Q: Directory"
Note: ┖┚ in the above text means leave a space (same as below), all punctuation must be in English state,--user-data-dir is Chrome's custom user Data Directory command, "P: Directory" is the user data directory you want to define (for example D:google Chromeappdata),--disk-cache-dir is a custom browse cache directory command, "Q: Directory" is the cache directory you want to define (such as D:google Chrome), after the above text is added: .... Chrome.exe┖┚--user-data-dir= "D:google chromeappdata" ┖┚--disk-cache-dir= "D:google Chrome".
3) "If you want to customize the maximum value of the cache, you can add the following command at the end of the text:
┖┚--disk-cache-size= "< cache max >", for example ┖┚--disk-cache-size= "104857600", indicates that the custom cache is 100MB.
4) After all the text has been added, click "OK" to exit, double-click the Google Chrome shortcut to launch the software, and Google Chrome will automatically create the two directories you specified, and the user data will automatically be transferred to the "D:google chromeappdata" directory. , the Internet files are also transferred to the custom cache "D:google Chromecache", but at the beginning of the custom cache is empty, with Google Chrome to browse a few pages, then go to the custom cache directory to see the Web files just browsed.
With the above steps, you can launch Google Chrome from the shortcut key to transfer the user data and the browse cache to the specified directory, but when you open chrome from an external program (such as QQ, Thunderbolt), a new user data directory is created in the original Chrome directory. Unable to invoke the previous UserData plug-ins, bookmarks, and so on can not be used, to make external calls also take effect, but also need to modify the registry. The steps are as follows--
1) Launch Google Chrome, and click "Set as Default browser" to set Chrome as your default browser;
2) in Win 7, click the Menu "Start"-"Run", enter regedit in the "Open" box, click "OK" to open the registry;
3) Expand HKEY_CLASSES_ROOT, and navigate to the following registry key, respectively:
Hkey_classes_rootchromehtmlshellopencommand
Hkey_classes_roothttpshellopencommand
Hkey_classes_roothttpsshellopencommand
Hkey_classes_rootftpshellopencommand
Locate and then modify the above 4 locations, double-click (default) in the right window, then pop up the Edit String dialog box, and in the Value data box, move the cursor between the chrome path and--"%1", then insert the chrome command and parameters, for example in Chrome.exe " Added later: ┖┚--user-data-dir= "D:google chromeappdata" ┖┚--disk-cache-dir= "D:google Chrome" ┖┚--┖┚ "%1"
Note: The ┖┚ is a space, and the ┖┚--┖┚ "%1" to be left behind is indicated as the default browser;
After the 4 locations have been modified to close the Registry Editor, no matter how you start Google Chrome, the user files and temporary files will be transferred to the directory you set!
⑺ Cons: Each time you upgrade chrome, the entries in the registry will have to be re-modified. If you're using a dev version, Zooey upgrade, that's not the pit daddy.