如何将Windows的临时文件夹移动到另一个驱动器

mtf_top

If you’re trying to save space on your system drive—say, if you have a space-starved solid state drive—moving Windows’ temporary files to another hard drive makes sense. Here’s how to do it.

如果您想节省系统驱动器上的空间(例如,如果您有空间不足的固态驱动器),则将Windows的临时文件移动到另一个硬盘驱动器是有意义的。 这是操作方法。

If you have a small SSD, it’s nice being able to free up as much space on it as you can. We’ve looked at how to move your personal folders to another drive and how to move your OneDrive folder (or Dropbox folder) before, but the Windows temporary folder can also be pretty a pretty big space consumer. Sure, you can empty it out, but it’ll just fill up again. The good news is that the temporary folder is easy to move from your system drive to a larger storage drive and it won’t really impact performance at all.

如果您的SSD较小,则可以释放尽可能多的空间,这是很好的选择。 之前,我们已经研究了如何将个人文件夹移动到另一个驱动器以及如何将OneDrive文件夹 (或Dropbox文件夹 ) 移动 ,但是Windows临时文件夹也可能是相当大的空间消耗者。 当然,您可以将其清空,但是它将再次填满。 好消息是,临时文件夹很容易从系统驱动器移至更大的存储驱动器,并且根本不会影响性能。

Hit Start, type “system,” and then hit Enter or click the result.

单击开始,键入“系统”,然后单击Enter或单击结果。

mtf_1

In the System window, click the “Advanced system settings” link.

在系统窗口中,单击“高级系统设置”链接。

mtf_2

In the System Properties window, on the “Advanced” tab, click the “Environmental Variables” button.

在“系统属性”窗口的“高级”选项卡上,单击“环境变量”按钮。

mtf_3

In the Environmental Variables window, the top box shows user variables. Two of those variables—TEMP and TMP—are used by Windows and other apps to store files to a temporary folder. Note that these variables are specific to the user currently logged in, so if you have multiple user accounts on the PC, you’ll need to log in as each user and make these changes. Select the TEMP variable and then click the “Edit” button.

在“环境变量”窗口中,顶部的框显示用户变量。 Windows和其他应用程序使用其中两个变量TEMP和TMP将文件存储到临时文件夹。 请注意,这些变量特定于当前登录的用户,因此,如果您在PC上有多个用户帐户,则需要以每个用户的身份登录并进行这些更改。 选择TEMP变量,然后单击“编辑”按钮。

mtf_4

In the Edit User Variable window, type a new path for the TEMP folder into the “Variable value” box. Alternatively, you can click the “Browse Directory” button to browse to your desired location. If you use the browse method, just be sure you create the TEMP folder in the location you want it and then select it. When you’ve selected the new location, click “OK.”

在“编辑用户变量”窗口中,在“变量值”框中键入TEMP文件夹的新路径。 或者,您可以单击“浏览目录”按钮浏览到所需位置。 如果使用浏览方法,只需确保在所需位置创建TEMP文件夹,然后选择它即可。 选择新位置后,单击“确定”。

mtf_5

Now, you’ll need to go back and repeat these same steps to change the location of the TMP variable to point the same new location. When you’re done, you can also close out the Environmental Variables and System Properties windows. You’ll need to restart your PC to have Windows begin using the new locations you specified for temporary files. You can always verify that the changes stuck by returning to the Environmental Variables window and making sure the new location is listed.

现在,您需要返回并重复这些相同的步骤,以更改TMP变量的位置以指向相同的新位置。 完成后,您还可以关闭“环境变量”和“系统属性”窗口。 您需要重新启动PC,以使Windows开始使用为临时文件指定的新位置。 您始终可以通过返回到“环境变量”窗口并确保列出了新位置来验证更改是否被卡住。

翻译自: https://www.howtogeek.com/285710/how-to-move-windows-temporary-folders-to-another-drive/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值