如果出现 Word 无法创建工作文件,请在将(Word could not create the work file, check the temp environment variable)Word连接到另一个程序时检查 temp 环境变量错误;您可以使用以下几个修复程序来消除此问题。任何版本的Microsoft Office(Microsoft Office)产品(如Windows 11/10/8/7上的Word、Excel 或 PowerPoint(Word, Excel or PowerPoint) )都可能出现此错误。虽然在这篇文章中,我们以Word为例,但也应用了类似的程序来修复Excel和PowerPoint中的错误。
Word具有许多功能,是我最常用的 Office 组件之一。今天,我尝试将SharePoint与(SharePoint)Microsoft Word一起用作协作工具,以便与我的团队联系,但Word不允许我这样做。Word强迫我在其中使用我的本地文档,从我收到的这个错误提示可以明显看出。
Office应用程序中出现(Office)无法(Could)创建工作文件错误的原因是什么?
可能有多种原因可能会触发手头的错误。以下是此错误的一些可能原因:
- 此错误可能是系统上存在的恶意软件可能会干扰Office应用程序的正常工作造成的。您可以尝试扫描并删除恶意软件以修复错误。
- 相同错误的另一个原因可能是计算机上存在系统文件损坏或文件系统错误。如果该方案适用,您可以尝试运行SFC扫描,然后运行CHKDSK命令来修复错误。
- 如果Temporary Internet Files 文件(Temporary Internet Files)夹位置设置不正确,则可能会发生此错误。在那里,您可以尝试更改Internet Properties中(Properties)Temporary Internet Files 文件(Temporary Internet Files)夹的位置。
Word无法创建工作文件,请检查临时环境变量(Temp Environment Variable)
正如您在图像中看到的那样,除了错误消息本身之外,没有什么可以帮助我解决此问题。我尝试了Microsoft Support,但他们的解决方案对我不起作用——我猜他们适用于以前的Word版本。然后我得出结论,这是由于注册表项不正确造成的。所以,最后,我有两个修复程序来解决这个问题,并想与大家分享。
要修复Word无法创建工作文件,请检查 temp 环境变量错误,请按照下列步骤操作:
- 运行(Run)SFC扫描并检查磁盘错误。
- 添加环境变量。
- 禁用预览窗格。
- 创建一个 Temporary Internet Files 文件(Internet Files)夹。
- 从Internet(Internet)属性(Properties)更改Temporary Internet Files位置。
- 重新注册 Word 文件。
- 使用注册表修复。
让我们详细检查这些步骤。
1]运行(Run)SFC扫描并检查磁盘错误
此错误可能是由于系统文件损坏或 PC 上的磁盘错误造成的。因此,您应该做的第一件事是消除错误,运行 SFC 扫描,然后检查和修复磁盘错误。SFC 或系统文件检查器是Windows中的内置实用程序,允许用户通过命令提示符(Command Prompt)扫描和修复损坏的系统文件。另一方面,您可以使用另一个名为Check Disk Utility (CHKDSK)的(Check Disk Utility (CHKDSK))Windows内置工具来修复磁盘错误。
在此之前,您可以尝试使用防病毒套件扫描系统上的恶意软件。如果它在您的计算机上没有发现任何恶意软件,请继续执行以下步骤。
以下是修复系统文件损坏和磁盘错误以解决错误的步骤:
- 首先,使用提升的权限打开命令提示符(open the Command Prompt with elevated privilege)。
- 现在,键入以下命令并按Enter 键(Enter)执行它:
sfc.exe /scannow
- 当命令完全执行并修复系统文件错误后,您可以继续进行磁盘错误检查。
- 在提升的命令提示符(Command Prompt)中,输入以下命令:
chkdsk /r /f
- 修复文件系统错误后,重新启动 PC,打开Word,然后尝试执行导致错误的相同操作。
希望此方法为您修复错误。但是,如果没有,您可以继续进行下一个可能的修复。
2]添加环境变量
您可以尝试的另一个修复是添加一个新的环境变量。它已为许多受影响的用户修复了该错误,并且也可能对您有用。以下是执行此操作的步骤:
- 首先,使用Windows + I 热键打开“设置”应用程序并导航到“(Settings)System > About” 。
- 现在,找到相关链接部分并单击高级系统设置(Advanced system settings)选项。
- 在新的系统属性(System Properties)窗口中,确保您位于高级(Advanced)选项卡上。
- 接下来,按环境变量(Environment Variables)按钮。
- 之后,在用户(User)变量下(是您的用户名),单击新(New)按钮。
- 然后,在各个字段中输入以下值:
- 在变量名称字段中,输入%userprofile%。
- 在变量(Variable)值字段中,输入C:\Users\<username>(输入您的用户名代替 <username>)。 - 最后,选择 OK 按钮创建一个新的环境变量。
完成此操作后,重新启动您的设备并在Word(Word)中尝试相同的操作,然后查看错误现在是否已修复。如果您在此方法中找不到运气,我们会提供更多修复;所以现在转到下一个潜在的方法。
3]禁用预览窗格
您也可以尝试禁用文件资源管理器中的(File Explorer)预览(Preview)窗格来修复错误。这是一种解决方法,可能对您有用。为此,您可以使用Win+E文件资源管理器(File Explorer),然后单击查看(View)下拉选项。然后,转到“Show >预览窗格”选项并确保它未选中。看看这是否为您解决了问题。
如果您不想完全禁用“预览(Preview)”窗格,可以通过编辑某些注册表子项来禁用Word和其他Office文件的预览。(Office)但是,请务必备份注册表,因为对注册表的错误修改可能(Registry)会导致严重问题。
以下是在文件资源管理器中禁用(File Explorer)Word、Excel和Powerpoint文件预览的步骤:
- 首先,按Win+R热键唤起运行(Run)对话框,然后在其中输入regedit打开注册表编辑器(Registry Editor)应用程序。
- 现在,在注册表编辑器(Registry Editor)中,查找以下键:
Word 预览:(Word Preview:) HKCR\CLSID\{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}
PowerPoint 预览:(PowerPoint Preview:) HKCR\CLSID\{65235197-874B-4A07-BDC5-E65EA825B718}
Excel 预览:(Excel Preview:) HKCR\CLSID\{00020827-0000-0000-C000-000000000046}
- 接下来,将上面的键一一删除。
- 之后,重新启动Windows并查看错误现在是否已修复。
4]创建(Create)一个临时Internet文件文件(Temporary Internet Files)夹
您也可以尝试创建一个 Temporary Internet Files 文件(Internet Files)夹来解决错误。为此,您可以按照以下步骤操作:
- 首先,使用Win+R运行(Run)对话框,然后在打开框中输入以下地址:
C:\Users\用户名\AppData\Local\Microsoft\Windows\INetCache
您可能需要在文件资源管理器中启用“View > Show > Hidden items选项才能查看该位置。
- 现在,在打开的位置,右键单击空白区域,然后选择“New > Folder选项以创建一个新文件夹
- 接下来,将新创建的文件夹命名为Content.Word。
- 之后,重新启动您的 PC 并查看错误是否已修复。
还有另一种方法可以使用Command Prompt创建 Temporary (Command Prompt)Internet Files 文件(Internet Files)夹。以下是执行此操作的步骤:
- 首先,以管理员身份启动命令提示符。(Command Prompt)
- 现在,一一输入以下命令:
cd /d %USERPROFILE%\AppData\Local\Microsoft\Windows\INetCache
MD内容.Word
如果这可以为您解决问题,那就太好了。如果没有,请继续下一个解决方案。
5]从Internet属性更改(Change)临时Internet文件(Temporary Internet Files)位置
如果您没有选择正确的Internet 临时文件位置,您可能会在(Temporary Internet Files)Word和其他Office应用程序中遇到此错误。因此,请确保您选择了正确的位置,如果没有,您可以尝试从Internet Properties修改(Properties)Temporary Internet Files位置。以下是如何做到这一点:
- 首先,使用Win+R运行(Run)对话框,然后在其中输入inetcpl.cpl以启动Internet属性(Properties)窗口。
- 现在,在“常规(General)”选项卡的“浏览(Browsing)历史记录”部分下,点击“设置”(Settings ),这将打开“网站数据设置”(Website Data Settings)窗口。
- 在新的对话框窗口中,确保您位于Internet 临时文件(Temporary Internet Files)选项卡中。在这里,您将看到文件夹的当前位置。只需(Simply)单击窗口底部的移动文件夹按钮。(Move folder)
- 之后,在“浏览文件夹(Browse for Folder)”窗口中,转到以下路径:
C:\Users\<用户名>\AppData\Local\Microsoft\Windows
注意:(Note:)在上述路径中,将 <username> 替换为您的用户名。这意味着,在用户之后,导航到您登录的用户名。
- 接下来,在上述位置,您将看到一个名为INetCache的文件夹;只需选择它。\然后按确定按钮。
- 最后,关闭所有对话框窗口并重新启动您的 PC。下次启动时,您应该不会在Word或其他Office应用中看到相同的错误。
6]重新注册Word文件
要解决此问题,只需按 Windows Key + R组合即可调出运行(Run)对话框。键入以下内容并按 Enter:
winword.exe /r
在上述命令中,/r部分强制在Windows 注册表(Windows Registry)配置中重新注册Word,从而最终解决了问题。如果此修复不起作用,您可以尝试替代方法:
7]注册表修复
1.按Windows Key + R组合,在运行(Run)对话框中键入 put Regedt32.exe ,然后(Regedt32.exe)按 Enter(Enter)打开注册表编辑器(Registry Editor)。
2.导航到以下位置:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
3.在此位置的右侧窗格中,查找名为字符串的AppData并仔细观察其Value data。此字符串的值数据(Value data),如果已更改,则足以产生有关环境变量的问题。因此,将其默认值数据(Value data)恢复为:
%USERPROFILE%\AppData\Roaming
输入数值数据(Value data)后点击确定(OK)。您现在可以关闭注册表编辑器(Registry Editor)并重新启动机器。重新启动后,再次开始使用Word,您会发现问题已得到解决。
相关(Related):Outlook 无法创建工作文件,请检查临时环境变量。
如何修复Word无法创建工作文件?
你可以做两件事来解决这个问题。首先(First),您可以重新注册计算机上的所有Word文件。其次,您可以使用上述指南中提到的注册表编辑器方法。(Registry Editor)无论(Whether)您是在旧版还是最新版Office中遇到此错误,都可以使用这些修复程序来解决此问题。
如何修复Word无法保存或创建此文件?
如果Word在(Word)Windows 11/10中无法保存或创建文件,您必须检查您的帐户的权限。如果您的帐户没有创建新文件或保存现有文件的权限,您可能会在Word中收到此错误。
Hope this helps!
注意:(NOTE:)另请阅读下面贝拉的评论。
Word could not create the work file, Check the temp Environment Variable
If уou get Word could not create the work file, check the temp environment variable error while connecting Word to another program; here are a couple of fixes that you can use to eliminate this problem. This error can occur with any version of Microsoft Office products like Word, Excel or PowerPoint on Windows 11/10/8/7. Although in this post, we have taken the example of Word, a similar procedure was applied to fix the error in Excel & PowerPoint too.
With lots of features, Word is one of the most used Office components for me. Today, I was trying to use SharePoint as a collaboration tool along with Microsoft Word, so that I could connect with my team, but Word didn’t let me do so. I was being forced by Word to use my local documents in it, as evident from this error prompt I received.
What causes the Could not create the work file error in Office applications?
There can be several causes that may trigger the error at hand. Here are some of the possible reasons for this error:
- This error can be a result of malware present on your system that might be interfering with the regular working of your Office application. You can try scanning and removing the malware to fix the error.
- Another reason for the same error can be system file corruption or file system errors present on your computer. If the scenario applies, you can try running an SFC scan followed by the CHKDSK command to fix the error.
- If the Temporary Internet Files folder location is not set correctly, this error may occur. In that, you can try changing the location of the Temporary Internet Files folder in Internet Properties.
Word could not create the work file, Check the Temp Environment Variable
As you can see in the image, there was nothing to help me to fix up this issue except the error message itself. I tried Microsoft Support, but their solutions did not work for me – I guess they were for previous Word editions. Then I came to the conclusion that this is due to incorrect registry entries. So, finally, I got two fixes to troubleshoot this issue and would like to share with you all.
To fix Word could not create the work file, check the temp environment variable error, follow these steps:
- Run an SFC scan and check for disk errors.
- Add an Environment Variable.
- Disable Preview pane.
- Create a Temporary Internet Files folder.
- Change the Temporary Internet Files location from Internet Properties.
- Reregister Word files.
- Use the Registry fix.
Let’s check out these steps in detail.
1] Run an SFC scan and check for disk errors
This error can be a result of system file corruption or disk errors on your PC. So, the first thing you should do to get rid of the error is to run an SFC scan and then check & repair disk errors. SFC or System File Checker is an inbuilt utility in Windows that allows users to scan and fix corrupted system files via Command Prompt. On the other hand, you can repair disk errors using another Windows built-in tool called Check Disk Utility (CHKDSK).
Before that, you can try scanning for malware on your system using your antivirus suite. If it doesn’t find any malware on your computer, go ahead with the below steps.
Here are the steps to fix system file corruption and disk error to resolve error:
- Firstly, open the Command Prompt with elevated privilege.
- Now, type the below command and press Enter to execute it:
sfc.exe /scannow
- When the command is fully executed and system file errors are fixed, you can go ahead with tunning disk error check.
- In the elevated Command Prompt, enter the below command:
chkdsk /r /f
- When the file system errors are repaired, reboot your PC, open Word, and try attempting the same action which gave you the error.
Hopefully, this method fixes the error for you. However, in case it doesn’t, you can move on to the next potential fix.
2] Add an Environment Variable
Another fix that you can try is adding a new environment variable. It has fixed the error for many affected users and might work for you as well. Here are the steps to do that:
- Firstly, open the Settings app using Windows + I hotkey and navigate to System > About.
- Now, locate the Related links section and click the Advanced system settings option.
- In the new System Properties window, make sure you are on the Advanced tab.
- Next, press the Environment Variables button.
- After that, under User variables for <username> (<username> is your user name), click on the New button.
- Then, enter the following values in respective fields:
-Inside the Variable name field, enter %userprofile%.
-Inside the Variable value field, enter C:\Users\<username> (type your username in place of <username>). - Finally, select the OK button to create a new environment variable.
After doing so, restart your device and attempt the same action in Word and see if the error is now fixed. In case you don’t find luck in this method, we have some more fixes; so move to the next potential method now.
3] Disable Preview pane
You can also try disabling the Preview pane in File Explorer to fix the error. It is a kind of workaround and might work for you. To do that, you can open File Explorer using Win+E hotkey and then click on the View drop-down option. Then, go to the Show > preview pane option and make sure it is unchecked. See if this fixes the issue for you.
In case you don’t want to completely disable the Preview pane, you can disable preview for Word and other Office files by editing certain registry subkeys. But, make sure to back up the registry as an incorrect modification to the Registry can lead to serious problems.
Here are the steps to disable preview for Word, Excel, and Powerpoint files in File Explorer:
- Firstly, press the Win+R hotkey to evoke Run dialog and then enter regedit in it to open up the Registry Editor app.
- Now, in Registry Editor, look for the following keys:
Word Preview: HKCR\CLSID\{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}
PowerPoint Preview: HKCR\CLSID\{65235197-874B-4A07-BDC5-E65EA825B718}
Excel Preview: HKCR\CLSID\{00020827-0000-0000-C000-000000000046}
- Next, delete the above keys one by one.
- After that, reboot Windows and see if the error is now fixed.
4] Create a Temporary Internet Files folder
You can also try creating a Temporary Internet Files folder to resolve the error. To do that, you can follow the below steps:
- Firstly, open the Run dialog box using Win+R hotkey and then enter the below address in the Open box:
C:\Users\username\AppData\Local\Microsoft\Windows\INetCache
You might need to enable the View > Show > Hidden items option in File Explorer to view the location.
- Now, in the opened location, right-click on the empty space and then select the New > Folder option to create a new folder
- Next, name the newly created folder as Content.Word.
- After that, reboot your PC and see if the error is fixed now.
There is another method to create a Temporary Internet Files folder using Command Prompt. Here are the steps to do that:
- Firstly, launch Command Prompt as an administrator.
- Now, enter the below commands one by one:
cd /d %USERPROFILE%\AppData\Local\Microsoft\Windows\INetCache
MD Content.Word
If this fixes the issue for you, well and good. If not, go ahead with the next solution.
5] Change the Temporary Internet Files location from Internet Properties
In case you have not selected the correct Temporary Internet Files location, you might experience this error in Word and other Office applications. So, make sure you have chosen the correct location, and if not, you can try modifying the Temporary Internet Files location from Internet Properties. Here is how to do that:
- Firstly, open the Run dialog box using Win+R and then enter inetcpl.cpl in it to launch the Internet Properties window.
- Now, in the General tab, under the Browsing history section, tap on Settings which will open up the Website Data Settings window.
- In the new dialog window, make sure you are in the Temporary Internet Files tab. Here, you will see the current location for the folder. Simply click on the Move folder button present at the bottom of the window.
- After that, inside the Browse for Folder window, go to the following path:
C:\Users\<username>\AppData\Local\Microsoft\Windows
Note: In the above path, replace the <username> with your username. That means, after Users, navigate to the username you have logged on to.
- Next, at the above location, you will see a folder named INetCache; simply select it.\ and press the OK button.
- Finally, close all the dialog windows and reboot your PC. On the next startup, you should not see the same error in Word or other Office apps.
6] Reregister Word files
To fix this problem, simply press Windows Key + R combination to bring up Run dialog. Type following and hit Enter:
winword.exe /r
In the above command, the /r part forces a re-register of Word in Windows Registry configuration and thus eventually fixes up the issue. If this fix does not work, you can try the alternative:
7] Registry Fix
1. Press Windows Key + R combination, type put Regedt32.exe in Run dialog box and hit Enter to open the Registry Editor.
2. Navigate to the following location:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
3. In the right pane of this location, look for the AppData named string and carefully observe its Value data. The Value data for this string, if it has been changed, it is enough capable to generate the issues regarding the environment variable. So restore its default Value data to this:
%USERPROFILE%\AppData\Roaming
Click OK after inputting the Value data. You may now close the Registry Editor and reboot the machine. After reboot, start using Word again, and you observe that the issue has been fixed already.
Related: Outlook could not create the work file, Check the temp environment variable.
How do I fix Word cannot create work file?
There are two things you can do to fix this issue. First, you can reregister all the Word files on your computer. Second, you can use the Registry Editor method mentioned in the aforementioned guide. Whether you get this error in an older or the newest version of Office, you can use these fixes to get rid of this problem.
How do you fix Word cannot save or create this file?
If Word cannot save or create a file in Windows 11/10, you must check the permission of your account. If your account doesn’t have the permission to create a new file or save an existing one, you might get this error with Word.
Hope this helps!
NOTE: Also read bella’s comment below.