Body
Environment
Microsoft Office on Windows with shared network drives.
Issue
When attempting to open a Microsoft Office file from a shared network drive, an error message "file is in use" or "file is locked" appears, despite the file not being open by another user.
Resolution
To resolve the issue, follow these steps:
- Navigate to the folder on the shared network drive where the Microsoft Office file is located. For example, if you are trying to open S:\example.xlsx then you will want to be in the S: drive either from the Windows Explorer or from the command line.
- Look for a temporary file with a similar name as the document you are trying to open, but starting with a tilde (~), such as
~example.xlsx
. This may be hidden by the operating system in Explorer, so if you are using Explorer then check the steps to see that these types of files can be displayed. If you are using the command line you will not need to do that.
- If such a file exists, it needs to be deleted via either Windows Explorer or the command line:
- From Windows Explorer:
- Go to Control Panel > Appearance.
- Select Show Hidden.
- Uncheck "Hide protected operating system files (Recommended)".
- Delete the temporary file (
~example.xlsx
).
- From the MS-DOS Command Prompt:
- Open the Command Prompt by clicking Start > Run, type
CMD
, and press Enter.
- Change directory to the shared drive by typing
cd s:
and press Enter.
- List all files in the directory by typing
dir
and press Enter.
- Delete the temporary file by typing
del ~example.xlsx
and press Enter.
- After deleting the temporary file, try opening the original file again.
Additional Information
Need additional information or assistance? Contact the ITS Service Center.