When working with files on your computer, you may encounter situations where you want to change the default program that opens a specific file type. This can be useful when you prefer to use a different program to open a certain file, or when the current default program is not working properly. However, sometimes you may come across an error message that says "the file cannot be accessed by the system." In this article, we will explore how to change the default program for opening files and address the "the file cannot be accessed by the system" error.
Changing the Default Program for Opening Files
To change the default program for opening files, follow these simple steps:
- Locate the file you want to open with a different program. Right-click on the file and select "Open with" from the context menu.
- A list of available programs will appear. If the program you want to use is listed, click on it to select it. If the program is not listed, click on "Choose another app" or "Choose another program."
- A new window will open, displaying a list of programs. Select the program you want to use and make sure to check the box that says "Always use this app to open .[file extension] files" (e.g., Always use this app to open .doc files).
- Click "OK" to save the changes.
Now, whenever you double-click on a file with the same extension, it will open with the new default program you selected.
The "The File Cannot Be Accessed by the System" Error
If you encounter the error message "the file cannot be accessed by the system" when trying to change the default program for opening files, it can be frustrating. This error usually occurs due to permission issues or file corruption. Fortunately, there are some troubleshooting steps you can follow to resolve this issue:
1. Run the Program as an Administrator
In some cases, the default program you are trying to change may require administrative privileges. To run the program as an administrator, follow these steps:
- Locate the program you want to use as the default for opening files.
- Right-click on the program and select "Run as administrator" from the context menu.
- Try changing the default program again and see if the error persists.
2. Check File Permissions
File permissions can sometimes prevent the system from accessing or modifying files. To check and modify file permissions, follow these steps:
- Locate the file you are trying to open with a different program.
- Right-click on the file and select "Properties" from the context menu.
- In the Properties window, go to the "Security" tab.
- Click on "Edit" to modify the permissions.
- Make sure the user account you are using has the necessary permissions to access and modify the file. If not, click on "Add" to add your user account and grant the necessary permissions.
- Click "OK" to save the changes.
- Try changing the default program again and see if the error persists.
3. Repair File Associations
If the file associations on your computer are corrupted, it can cause the "the file cannot be accessed by the system" error. To repair file associations, you can use the built-in Windows utility called DISM (Deployment Image Servicing and Management). Follow these steps:
- Open the Command Prompt as an administrator. To do this, right-click on the Start button and select "Command Prompt (Admin)" from the context menu.
- In the Command Prompt window, type the following command and press Enter:
dism /online /cleanup-image /restorehealth - Wait for the process to complete. It may take some time.
- Once the process is finished, restart your computer.
- Try changing the default program again and see if the error persists.
By following these troubleshooting steps, you should be able to change the default program for opening files and resolve the "the file cannot be accessed by the system" error. If the issue still persists, it may be helpful to seek further assistance from a technical support professional.