zoukankan      html  css  js  c++  java
  • chrome 修改临时文件地址位置

    warning:此修改有风险,技术不太好的朋友就别试了

    众所周知chrome 的临时文件是存在C盘的

    若要将其更改,则可以简单的在启动项后面加入--user-data-dir= “路径” 的方法

    但是这种对于其他应用程序调用chrome是无效的 

    针对这种情况,我们需要更改注册表的

    分别在这几个位置加入参数

    HKEY_CLASSES_ROOT\http\shell\open\command

    HKEY_CLASSES_ROOT\ftp\shell\open\command

    HKEY_CLASSES_ROOT\https\shell\open\command

    HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command

    如果实在是懒的抽筋,这有个脚本,调整下就ok

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\http\shell\open\command]

    @="\"C:\\Users\\atpking\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe\" --user-data-dir=F:\\TmpData \"%1\""

    [HKEY_CLASSES_ROOT\ftp\shell\open\command]

    @="\"C:\\Users\\atpking\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe\" --user-data-dir=F:\\TmpData \"%1\""

    [HKEY_CLASSES_ROOT\https\shell\open\command]

    @="\"C:\\Users\\atpking\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe\" --user-data-dir=F:\\TmpData \"%1\""

    [HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command]

    @="\"C:\\Users\\atpking\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe\" --user-data-dir=F:\\TmpData \"%1\""     

    其中C:\\Users\\atpking\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe是chrome地址

    F:\\TmpData是临时文件夹存储路径

  • 相关阅读:
    Docker GitLab镜像部署
    Kubernetes集群部署之三ETCD集群部署
    Kubernetes集群部署之二CA证书制作
    Kubernetes集群部署之一系统环境初始化
    docker开源仓库Harbor部署笔记
    git分支
    git高清技能图
    vue+uwsgi+nginx部署路飞学城
    git基础
    git安装与初始化
  • 原文地址:https://www.cnblogs.com/jicheng1014/p/1982274.html
Copyright © 2011-2022 走看看