Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

“The system cannot find the file specified” means Windows could not locate a file required for the operation—not necessarily that a personal file was deleted. It is Win32 error 2 (ERROR_FILE_NOT_FOUND). The right fix depends on whether the message appears when you launch an app, start a service, run DISM, install an update, or open a local or network path. Identify the failing program and exact path before changing settings or repairing Windows.

Avoid registry cleaners and unofficial DLL downloads. Start with the checks below, then follow the branch that matches your situation.

First, identify what Windows cannot find

Write down the full message, any code such as Error 2, 0x80070002 or 0x80070003, the program or command that produced it, and any path shown. Note whether the problem began after an uninstall, update, drive-letter change, cleanup utility, or security-software action—and whether it affects one app or several Windows features.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Error 2 means a requested file could not be resolved. The missing item might be an executable, DLL, service binary, Windows component, installer package, repair source, network resource, or environment-variable path. It does not prove that a visible document was deleted. Error 3, ERROR_PATH_NOT_FOUND, means Windows could not find the path itself; see Microsoft’s system error code reference. The HRESULT 0x80070002 is a commonly seen representation of error 2, including in update and servicing contexts, but its cause depends on where it occurs.

Where the error appears Likely area to investigate First check
One app will not open Missing executable, broken shortcut, DLL, or installation Check the shortcut and installation folder
A command fails in one terminal Working directory, shell, or PATH Run where and inspect PATH
A service fails with Error 2 Missing service binary or stale configuration Run sc.exe qc for the service
DISM reports Error 2 Missing command or repair-source/component issue Check the command, source path, and DISM log
Windows Update or Setup fails Missing update or setup payload, servicing, disk, or configuration issue Record the full code and review update/setup guidance
A network or mapped-drive file fails Unavailable share or mapping Test the UNC path and run net use

Quick checks before making changes

  1. Restart once. A restart can reconnect temporary drives, complete pending updates, or reload environment variables. If the error returns, continue troubleshooting; a restart is not a diagnosis.
  2. Check the exact path. In Command Prompt, quote paths containing spaces:
    dir "C:fullpathtofile.exe"

    To test a specific file:

    if exist "C:fullpathtofile.exe" (
        echo Found
    ) else (
        echo Missing
    )
  3. Check the parent folder and drive. Confirm the drive letter is correct and the folder itself is present. For removable or encrypted storage, check that the volume is connected and unlocked.
  4. For a network location, test the UNC path directly:
    dir "\serversharefolder"
    net use

    Mapped drives may not be available to an elevated terminal, a Windows service, or a different user account, even if they appear in File Explorer.

  5. Open a new terminal after environment changes. Existing terminals and applications may retain the old environment.

If an application or command will not launch

Confirm the executable exists

If you know the executable name, search for it in the current directory and locations on PATH:

where programname

Microsoft documents where as a way to locate matching files. For a known installation location, check it directly:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
dir "C:Program FilesAppNameApp.exe"

If the executable is absent, use the app’s official repair or installer. On Windows 11, where the app offers the option, open Settings > Apps > Installed apps > [app] > Advanced options > Repair. Availability varies by app. Back up important app data and settings before reinstalling.

Check the shortcut and working directory

Right-click the shortcut, open Properties, and inspect Target and Start in. Make sure the target still exists and that neither field refers to an old drive letter, user profile, or program folder. A shortcut can outlive the app it once launched.

Some commands rely on relative paths and fail if run from the wrong folder. Try the application’s directory or use an absolute path:

cd /d "C:Program FilesAppName"
App.exe

Check PATH without replacing it

In Command Prompt:

where programname
echo %PATH%
set

In PowerShell:

$env:Path -split ';'
Get-Command programname -All

The set command displays and manages environment variables in Command Prompt. If an expected folder is missing from PATH, repair that specific entry rather than replacing the whole variable. A wholesale reset can break Windows tools, developer environments, and installed software. Open a new terminal or restart the affected app after making a change.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If the message names a DLL, do not download a loose replacement from an unofficial site. The DLL may need to match Windows and application versions, architecture, signature requirements, and dependencies. Repair or reinstall the application from its official source instead.

If a Windows service will not start with Error 2

A service can fail because its executable was removed, its configured path is stale, a dependency is missing, or security software quarantined a file. First identify the service and inspect its configuration; do not assume the service is a Windows component or change registry values blindly.

  1. Open services.msc and find the service’s exact name. Check its displayed path and dependencies.
  2. Open Command Prompt as administrator and run these commands with the service name in quotes:
    sc.exe query "ServiceName"
    sc.exe qc "ServiceName"
    sc.exe queryex "ServiceName"

    sc.exe query retrieves service information; sc.exe qc displays configuration, including the binary path and dependencies.

  3. Check whether the configured executable exists. Look for a stale program folder or drive letter, incorrect quotation marks, and a missing dependency. If security software acted recently, review its quarantine and history before restoring anything.

If the service belongs to third-party software you still use, prefer the vendor’s repair or reinstall process. If the application has been removed, cleanly uninstalling the leftover software may be safer than trying to make an obsolete service run. Do not copy a service executable from another PC or change ImagePath unless you have confirmed the correct path and trusted binary. Record the configuration before any change. For a Microsoft service, use official Windows repair guidance rather than downloading a system binary.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If DISM reports Error 2

First determine whether DISM itself cannot be found or whether DISM runs but cannot locate a repair payload. These are different problems.

DISM itself is not found

Check the built-in executable:

dir "%windir%System32dism.exe"
where dism

On Windows 10 and Windows 11 installations, DISM is built into Windows and is in C:WindowsSystem32. See Microsoft’s DISM overview. If dism.exe is genuinely missing or damaged, changing PATH is not a repair; move to Windows system repair or an in-place repair installation.

DISM runs but cannot find repair files

Open Command Prompt as administrator and run:

DISM.exe /Online /Cleanup-Image /RestoreHealth

This is Microsoft’s standard online image-repair command. DISM may obtain required files through Windows Update, but connectivity, policy, and component availability can prevent that. If you have a known-good, compatible source, you can specify it:

DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:RepairSourceWindows /LimitAccess

The example path is a placeholder: use a real source containing the needed repair files. It must be appropriate for the installed Windows edition, architecture, language, and build; an arbitrary Windows folder or mismatched ISO may not work. Microsoft explains repair sources and options in its Windows image repair guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

After DISM completes successfully, run:

sfc /scannow

Microsoft’s documented sequence is DISM first, then System File Checker. SFC checks protected Windows system files and repairs incorrect versions when possible; it does not repair every third-party app, shortcut, service registration, or environment variable. See Microsoft’s SFC instructions and command reference.

If you need to assess the component store before repair, use:

DISM.exe /Online /Cleanup-Image /CheckHealth
DISM.exe /Online /Cleanup-Image /ScanHealth

If DISM still fails, verify the source path and compatibility, check whether Windows Update is blocked or broken, and identify whether the failure concerns a particular package rather than general corruption. Review %windir%LogsCBSCBS.log and %windir%LogsDISMdism.log; Microsoft highlights servicing logs in its Windows Update and installation troubleshooting guidance. Repeating the same command without addressing the source or log evidence is unlikely to help.

Advanced: servicing an offline Windows installation

Do not start here for an ordinary app error. In Windows Recovery Environment, drive letters may differ from those in normal Windows. Confirm the Windows volume before servicing it:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
dir C:Windows
dir D:Windows

Then use the correct volume, for example:

DISM /Image:D: /Cleanup-Image /RestoreHealth

Using the wrong volume can target the wrong installation or fail to find the image.

If Windows Update or Windows Setup shows 0x80070002

In an update or setup workflow, this code points to a missing file in that operation—not necessarily a missing personal file. The same code can have different causes, so preserve the complete code and surrounding message. 0x80070003 instead indicates a path-not-found condition; 0xC1900101 is commonly associated with driver-related upgrade failures. See Microsoft’s upgrade and installation error guidance.

  1. Restart and retry the update. Use the built-in Windows Update troubleshooter if it is available for your Windows version.
  2. Check that the system drive is online and has adequate free space. Disconnect unnecessary external storage during an upgrade so Setup does not rely on a changing drive or location.
  3. If a third-party antivirus or system-tuning utility may be interfering, consult its vendor’s guidance; do not leave protection disabled unnecessarily. Microsoft lists security software conflicts and clean-start troubleshooting among possible update steps in its Windows Update troubleshooting guide.
  4. If the issue persists, use the DISM-then-SFC repair sequence above and review update or Setup logs for the failing file or component.
  5. If normal servicing cannot repair Windows, consider an in-place repair or upgrade using official Windows installation media appropriate to the installed edition and configuration. Back up important data first.

For a disk check when update troubleshooting points to possible drive errors, Microsoft includes chkdsk /f C: as a troubleshooting measure. It may require a restart; ensure important data is backed up and follow the prompt before proceeding. Do not treat it as a routine first fix for every Error 2.

If a local file, USB drive, mapped drive, or network share fails

Local files and folders

Confirm the file was not moved, renamed, or deleted. Search by its full name and extension, check the Recycle Bin, verify the drive letter, and test the parent folder as well as the final file. If it is on an offline or encrypted volume, connect or unlock that volume before retrying.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Mapped drives and network shares

Test the server’s UNC path directly, for example \serversharefolder. Run net use to see current mappings. If needed, reconnect a drive:

net use Z: "\servershare"

Use the appropriate share name and drive letter for your setup. An elevated process or service may run under a different account and not inherit your mapped drives; test the UNC path and check the service’s account context. Do not post passwords or credential-bearing commands in public screenshots or forums.

USB and removable storage

Reconnect the device, try another USB port, and check Disk Management for a changed or missing drive letter. If the drive may be failing, prioritize copying important data before running repair operations. Do not confuse a missing path with an access-denied error: changing permissions cannot restore a path that does not exist and may weaken security.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

If the error began after uninstalling software

Partial removal can leave a startup entry, scheduled task, service, shell extension, or file association pointing at a deleted executable or DLL. Look at the affected item before cleaning anything up:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Startup apps: Task Manager > Startup apps.
  • Scheduled tasks: open Task Scheduler and inspect tasks associated with the removed application.
  • Services: use services.msc and sc.exe qc to inspect the service path.
  • Installed software: Settings > Apps > Installed apps.
  • Failure details: check Event Viewer as described below.

Microsoft Sysinternals Autoruns can help experienced users inspect startup locations, but disable only entries you can identify. Do not delete registry keys wholesale or use a registry cleaner as a first-line fix.

Find a path in Event Viewer or Process Monitor

Event Viewer

  1. Press Win+R, enter eventvwr.msc, and press Enter.
  2. Check Windows Logs > System and Windows Logs > Application for entries at the time of the failure.
  3. Look for the service or process name, executable path, DLL, package, or related error code.

For update and servicing failures, CBS, DISM, and Setup logs are often more useful than Event Viewer alone.

Process Monitor: advanced diagnosis

When an application shows no useful path, use Microsoft Sysinternals Process Monitor only if you are comfortable interpreting file-system activity. Download it from Microsoft Sysinternals, reproduce the failure, and filter by the failing process. Look for results such as NAME NOT FOUND, PATH NOT FOUND, or ACCESS DENIED, then inspect the path immediately before the failure.

A NAME NOT FOUND result is not automatically an error: apps often probe optional files and continue when those files are absent. Focus on a missing path that matches the failed operation, not every unsuccessful probe.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When to stop and get help

Escalate to the software vendor, your IT administrator, or a qualified technician if a drive may be failing, important data is inaccessible, the affected service belongs to security software, Windows will not boot normally, DISM reports an unrecoverable image, or several core Windows components are missing. On a business or domain-managed PC, involve IT before changing services, security software, or update settings. If DISM and SFC complete but one third-party app still fails, focus on that app’s files, configuration, and vendor logs rather than repeatedly repairing Windows.

Frequently Asked Questions

Is “The system cannot find the file specified” a virus?

Not by itself. It is an error message indicating that Windows could not resolve a requested file. If the problem began after security software quarantined a file, verify the file’s publisher and obtain a replacement only from the official vendor; do not restore it blindly.

Does SFC fix Error 2?

Sometimes, if protected Windows system files are damaged. SFC does not repair every app, service registration, shortcut, path, or update problem. For Windows image corruption, Microsoft’s sequence is DISM followed by SFC.

What is the difference between Error 2 and Error 3?

Error 2, `ERROR_FILE_NOT_FOUND`, means the requested file could not be found. Error 3, `ERROR_PATH_NOT_FOUND`, means Windows could not find the path itself. The full code and context help identify the relevant fix.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why does DISM say it cannot find the file?

Either the DISM executable itself cannot be found, or DISM cannot access the repair payload it needs. Check that `dism.exe` exists, then verify the `/Source` path and its compatibility with your Windows edition, architecture, language, and build. Review the DISM and CBS logs if the problem continues.

Why does the error occur only in PowerShell or an administrator terminal?

The shell may have a different current directory or command-resolution behavior, or the elevated process may have a different environment and mapped drives. Check `Get-Command`, `where`, the relevant `PATH`, and the UNC path directly.

Why does a mapped drive work in File Explorer but not in a service?

A service commonly runs under a different account and session from your desktop user, so it may not see your mapped drive. Test the UNC path directly and verify which account runs the service.

When should I reinstall Windows?

Not as a first response to this message. Consider an official in-place repair or upgrade only when evidence points to Windows servicing or component damage that ordinary repair cannot resolve. Back up important data and confirm your edition and installation media are appropriate first.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.