How To Solve “Windows Cannot Access The Specified Device Path Or File” Error | Windows System

Does your PC give you the error “Windows cannot access the specified device, path, or file” when you try to open a file or device path? Chances are you don’t have the proper permissions to access the selected file or that the device you’re trying to access is not connected to your PC at all.

There are various reasons Windows displays the error mentioned above. Follow a few common fixes below to get rid of the problem. (Writer: Mahesh Makvana)

Change the File Permission

Windows can display the “Windows Cannot Access the Specified Device Path or File” error when you attempt to open a file for which you don’t have the right permissions. You can enable all permissions for the file and that should fix your issue.

Windows makes it easy to change file permissions, and you can do this without using a command-line method.

  1. Open the folder containing the problematic file.

  2. Right-click the file and select Properties.

  1. Select the Security tab at the top.

  2. From the Group or user names section, select your user account and select the Edit button.

  1. Select your user account in the new window that opens.

  2. In the Permissions section at the bottom, remove all checkmarks from the Deny column.

  1. Select Apply followed by OK at the bottom. Do this on the Properties window, too.

  2. Try reopening the problematic file to see if the issue has been resolved.

Plug-In the Removable Drive

If you’re experiencing the “Windows Cannot Access the Specified Device Path or File” issue with a shortcut, it might be that the shortcut leads to a file that was on a removable drive, and that drive is no longer connected to your PC.

In this case, Windows fails to find the actual file behind your shortcut and ends up showing an error message. You can fix the issue by plugging your removable drive back into your computer.

Once the drive is plugged in and you see it in File Explorer, run the problematic file and it should open just fine.

Connect the Computer or NAS to the Network

Another possible reason Windows can’t open your file is that you have saved the file on a network computer or NAS device, and that device is currently not connected to the network. Windows can’t find the actual file when you double-click the file shortcut.

The easiest way to fix this issue is to connect the other computer, where the file is stored, to your network. Once the computer or NAS is back up on the network, run your problematic file and it should open without issues.

Verify the Shortcut’s Actual File

If your PC fails to open a shortcut, there’s a high chance that the actual file behind the shortcut is no longer available.

An easy way to verify the file’s existence behind the shortcut is by using a File Explorer window.

  1. Locate your shortcut in File Explorer.

  2. Right-click the shortcut and select Properties.

  1. Select the Shortcut tab on the Properties window.

  2. Select the Target box. Copy the full path to the file, but don’t copy the actual file name.

  1. Open a File Explorer window, select the address bar at the top, press Ctrl + V to paste the copied path, press Enter.

  1. When the folder opens, your current shortcut won’t work if the file for the corresponding shortcut is missing.
  2. If you see the file, there might be an issue with your shortcut. Create a new file shortcut on your desktop by right-clicking the file and selecting Send to > Desktop (create shortcut).

Unblock the File

When a file comes from an untrusted source, like the internet, Windows tends to block access to the file. This is to protect your PC from any potential threats.

This blocking of untrusted files can cause Windows to display the “Windows cannot access the specified device, path, or file” error when you try to open an untrusted file.

You can tell Windows that the file is safe to open and Windows will unblock the file for you.

  1. Right-click the problematic file and select Properties.

  2. Select the General tab at the top.

  1. At the bottom, check the Unblock option.

  1. Select Apply and then select OK.

  2. Double-click your file and it should open.

Turn Off Antivirus

Sometimes your antivirus program detects safe files as suspicious files and prevents Windows from reading the file, causing the error message.

To fix this issue:

  1. Temporarily turn off your antivirus program.

  2. Try to open the file to see if it opens.

  3. If it does, whitelist that file in your antivirus program so that it doesn’t detect it as a threat. You can usually whitelist files and apps from the settings menu of your antivirus tool. You can also just Google your antivirus program name followed by “whitelist app” and get the correct steps.

Happy learning!