Как исправить систему не удается найти указанный файл Ошибка
-
Скачайте и установите инструмент для ремонта здесь.
Сообщение об ошибке: «Система не может найти указанный файл» — очень распространенная ошибка для пользователей Windows, особенно для Windows 10, которая обычно указывает код ошибки 0x80070002. Однако код варьируется в зависимости от спецификации операционной системы, типа ошибки и других индикаторов.
В этой статье доступны эффективные решения, которые помогут системе не найти файловую ошибку. Если вы столкнулись с ошибкой «Система не может найти указанный файл», не стесняйтесь читать это руководство, чтобы найти подходящее решение.
В целом, это очень распространенная ошибка для пользователей Windows, особенно для пользователей Windows 10, которая обычно отображает код ошибки 0x80070002. Некоторые распространенные причины этой ошибки перечислены ниже:
Обновление за февраль 2023 года:
-
Шаг 1: Скачать PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista — Microsoft Gold Certified).
- Отсутствует файл драйвера
- проблема с сетевым подключением
Хотя причина явно неизвестна, вы можете попробовать следующие решения для решения вашей проблемы.
Удалите драйвер и переустановите его.

- Зайдите в диспетчер устройств.
- Разверните категорию и найдите устройство, которое вы хотите удалить. (Здесь, например, мы берем
Проверьте файл системного журнала, чтобы найти файл драйвера проблемы.
Следуй этим шагам:
- Перейдите к C: / Windows / инф.
- Откройте папку inf и найдите файл «setupapi.dev» (в некоторых случаях это файл «setupapi.dev.log»).
- Дважды щелкните по нему, чтобы открыть файл.
Установите обновления Windows
- Нажмите кнопку Windows + I и выберите «Обновление и безопасность».
- Нажмите на Проверить обновления и подождите.
Совет экспертов: Этот инструмент восстановления сканирует репозитории и заменяет поврежденные или отсутствующие файлы, если ни один из этих методов не сработал. Это хорошо работает в большинстве случаев, когда проблема связана с повреждением системы. Этот инструмент также оптимизирует вашу систему, чтобы максимизировать производительность. Его можно скачать по Щелчок Здесь
CCNA, веб-разработчик, ПК для устранения неполадок
Я компьютерный энтузиаст и практикующий ИТ-специалист. У меня за плечами многолетний опыт работы в области компьютерного программирования, устранения неисправностей и ремонта оборудования. Я специализируюсь на веб-разработке и дизайне баз данных. У меня также есть сертификат CCNA для проектирования сетей и устранения неполадок.
[Fixed]The system cannot find the file specified on Windows 10/8/7
Summary: This post explains the Windows error — The system cannot find the file specified, and it elaborates on how to fix this error with 10 proven methods.

Fixes to The system cannot find the file specified:
When a command can not be performed by the computer system, it usually prompts an error notification such as error code 0x80070002 and UNMOUNTABLE_BOOT_VOLUME. In addition, The system cannot find the file specified is also an error that may happen on Windows 10 and earlier versions. However, there is no need to panic, such an error can be solved with proven fixes in this post. Stay tuned to know more.

When and why does the file specified error occur
You may encounter the error «The system cannot find the file specified» on the Windows computer when you transfer files to another drive, access a local drive, open files and folders, install device drivers and other software, launch programs, create backups, etc.
When such an error pops up, it means the system fails to find the required file to complete the instruction. And the reasons that lead to the file specified error appearing on Windows 10/8/7 are various, including:
- Disk failure.
- Drivers issue.
- Registry files error.
- System files are missing or corrupted.
- Incorrect file permission settings.
Fixes to The system cannot find the file specified
In this part, we conclude the most proven fixes to help you get out of the file-specified issue. Follow the tutorial step by step to remove this error from your Windows PC.
Fix 1. Run System File Checker
The Windows System File Checker(SFC) is a built-in tool to find and fix system file errors on your computer. It helps when the Windows functions aren’t working like «The system cannot find the file specified» or Windows crashes. Here is how to use the SFC tool:
- Open the Start menu and type cmd into the search bar.
- Right-click Command Prompt and choose Run as administrator.
- Enter the commands: sfc /scannow into the Command Prompt window to start the SFC.
- Wait for this process to complete and repair the corrupted files.

Fix 2. Use CHKDSK command
CHKDSK, a cmd command, is used for checking the logical and physical errors on your drive. And it can repair logical disk errors and file system errors as well as locate the bad sectors on the disk. Here’s how:
Note: Chkdsk for a Mac is called fsck. Fsck is used in Terminal on a Mac. But usually, users use First Aid in Disk Utility to repair disks.
- Type cmd in Search Box and the Command Prompt will pop up. Then, right-click it and select Run as administrator.
- Type chkdsk *: /r in the pop-up window and press Enter to run chkdsk command. For example, if the desired drive is disk H, enter chkdsk h: /r
- Waiting for the chkdsk stages to finish.
- Reboot your Windows computer to check whether it works.

Fix 3. Restore your missing files
Unexpectedly, the required files on your computer may be unconsciously deleted or infected by viruses and malware. Such a situation can also give rise to the error that «The system cannot find the file specified.»
Therefore, you need to restore the missing files as soon as possible. Here we recommend the professional and reliable data recovery software — iBoysoft Data Recovery for Windows. It helps to retrieve the deleted and lost files on the PC. Let’s see the detailed steps.
Download
iBoysoft Data Recovery for Windows
Rating:4.8
- Download and launch iBoysoft Data Recovery for Windows onto another disk or partition to avoid data overwriting.
- Select the Data Recovery module.

- Select the drive or partition and click Next to start a quick scan. You can also use the Deep scan mode to retrieve more deleted/lost files.

- Preview the scanning results. Make a selection of wanted files, and click the Recover button to save them to a different destination.
iBoysoft Data Recovery for Windows is such a versatile application. It offers 3 data recovery modes and can recover deleted and lost files from disk-based storage media in various scenarios including deleted/lost email recovery, formatted drive recovery, USB data recovery, etc.
Fix 4. Verify system log files
The system log files are records of operating system events. It includes startup messages, system changes, unexpected shutdowns, errors and warnings, and other important processes. You may find the missing files here to solve the file specified error.
- Head to C:/Windows/inf directory and open the inf folder.
- Find the setupapi.dev or setupapi.dev.log file, and double-click to open it.
- Press Ctrl and F keys to open the find box, type cannot find the file in the search.
- Press Enter to run the search, then it lists the missing file.
- Select the desired one, and copy and paste the missing file into the Windows / INF folder.
- Reinstall the driver and restart the computer.

Fix 5. Update or reinstall drivers
An outdated or malfunctioned disk driver on your computer may cause the file specified error. Then updating the disk driver or reinstalling it can solve the problem.
- Go to Control Panel and select Device Manager.
- Expand the Disk driver.
- Right-click on the disk and select Update Driver.
- Reboot your Windows 10 computer and try to access the hard drive.
- If it doesn’t work, choose Uninstall device > Delete the driver software for this device and click Uninstall to confirm, then restart your PC. When the computer restarts, Windows will find the device and reinstall the latest driver.

Fix 6. Open the Libraries folder
The Windows Libraries is designed to organize files and folders into logical containers, and the content isn’t stored in the same physical location. In Windows 10, the Libraries folder is hidden by default, and unhiding the Libraries may fix the system cannot find the file specified error.
- Open This PC.
- Right-click the empty space in the left pane and choose Show libraries.

Fix 7. Change your Registry
Much of the information and settings for software programs, hardware devices, user preferences, and operating-system configurations are stored in the Windows Registry. Modifying some of the registry keys may get rid of the file specified error. Here is the tutorial:
Note: You can create a backup to secure your current registry condition. If anything goes wrong after modifying, then you can simply run this backup file to restore your registry to its original state.
- Press Windows and R keys, then type regedit and press Enter.
- Navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion.
- Check if there is RunOnce. If not, create it manually.
- Click the CurrentVersion key and choose New > Key from the menu.
- Name the new key as RunOnce.
- Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ key in the left pane to check the created RunOnce key.
- Exit Registry Editor and restart your computer.

If the issue still exists, you can check for RTHDCPL in Registry Key:
- Enter Registry Editor.
- Verify RTHDCPL in HKLM\Software\Microsoft\Windows\CurrentVersion\Run\
- If it is not there, check for the Run property and set the Admin-user permission as Completely control, then press Ok to continue.

Fix 8. Delete Profileimagepath Key
The registry value called ProfileImagePath includes the profile path for all users. You may meet the error message when you transfer image files, back up the Windows, or create system images. Thus, deleting the missing Profileimagepath key can fix the file specified error. Follow the steps:
- Open Registry Editor.
- Go to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\ProfileList.
- Expand the Profilelist and check whether all sub-keys have ProfileImagePatch value..
- Remove any sub-keys lacking ProfileImagePath value.
- Restart your computer to see whether the problem still exists.

Fix 9. Reinstall the program
Perhaps, you encounter the system cannot find the file specified error when you open a program. It is highly like that the configuration files of the program are corrupted or infected by the virus. The quick fix is to uninstall the program from Windows, thoroughly remove its files, then reinstall it on Windows.
Fix 10. Install Windows updates
In case the current Windows operating system on your computer is outdated, it may prevent you from performing certain tasks, and displays the system cannot find the file specified error on the screen. Then, updating Windows may get this error settled.
- Select the Start menu.
- Choose Update & Security and then Windows Update on the left.
- Check for new Windows 10 updates by choosing Check for updates.
- If there is an available update, it will automatically download and install the Windows update.
Conclusion
No matter what your case is when you encounter this error message — The system cannot find the file specified, whether you are transferring files, accessing files on hard drives, opening programs, etc., you can try these 10 fixes described above to get it fixed.

Amanda is one of the main columnists at iBoysoft. She loves exploring new technologies, focusing on macOS, Windows OS, data recovery, data security, disk management, and other tech-related issues. She takes delight in providing technical and informative articles to help people out of problems and get the utmost out of their devices.

Jessica Shee is a senior tech editor at iBoysoft. Throughout her 3 years of experience, Jessica has written many informative and instructional articles in data recovery, data security, and disk management to help a lot of readers secure their important documents and take the best advantage of their devices.
The system cannot find the file specified. in Visual Studio

The system cannot find the file specified usually means the build failed (which it will for your code as you’re missing a # infront of include , you have a stray >> at the end of your cout line and you need std:: infront of cout) but you have the ‘run anyway’ option checked which means it runs an executable that doesn’t exist. Hit F7 to just do a build and make sure it says ‘0 errors’ before you try running it.
Code which builds and runs:
The code should be :
Just a quick note: I have deleted the system command, because I heard it’s not a good practice to use it. (but of course, you can add it for this kind of program)
I had a same problem and this fixed it:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64 for 64 bit system
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib for 32 bit system
in Property Manager > Linker > General > Additional Library Directories
![]()
Another take on this that hasn’t been mentioned here is that, when in debug, the project may build, but it won’t run, giving the error message displayed in the question.
If this is the case, another option to look at is the output file versus the target file. These should match.
A quick way to check the output file is to go to the project’s property pages, then go to Configuration Properties -> Linker -> General (In VS 2013 — exact path may vary depending on IDE version).
There is an «Output File» setting. If it is not $(OutDir)$(TargetName)$(TargetExt) , then you may run into issues.
8 Methods: The system Cannot Find the File Specified
Troubled by “The system cannot find the file specified” in Windows 11,10, 8, 7.? Effective solutions are available in this article to help you fix the “system cannot find the file specified” error on Windows.
By Emily
/ Last Updated March 4, 2022
Scenarios
“I get ‘The system cannot find the file specified (0x80070002)’ error preventing backup from starting Windows 10. Upgraded from Windows 7. Everything else works 100% fine. Trying to backup to internal drive. Help would be appreciated, thank you.”

Why “The system cannot find the file specified” occurs?
“The system cannot find the file specified” is a quite common error for Window users, especially for Windows 10. This error is sometimes followed by an error code: 0x80070002. But the failure type or code will be various on the different operating system specification. It might occur when you install disk driver, make a system image, access files or make other operations on the system. The main reasons include:
•Virus or malware attack.
•The connection is loose.
•Abnormal registry keys.
•There are some disk errors on the source volume.
•Crucial system files are missing or damaged.
•System partition is under an offline state.
•System partition is not active.
•Required files for the specific software are missing or corrupted.
8 Methods to fix «The system cannot find the file specified»
Next, we would like to share the following 8 effective solutions for “The system cannot find the file specified” error. For the best result, you can try them one by one until you get the error fixed. Before proceeding, you can first run reliable anti-virus software to remove any possible virus or malware and check whether the connection between hard drive and computer is tight. If everything is OK and the error still pops out, look further.
Method 1. Change registry key
First of all, you can modify the registry key to fix this error. To do so, take the following steps:
1. Press “Windows + R” at the same time, type “regedit” in the pop-out dialogue and press “Enter” to open Registry Editor.
2. Navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
3. Expand the key and look for “RunOnce” key. If it does not exist, you can first create one: click the “CurrentVersion” key and choose “New > Key” from the drop-down menu, and name the new key as “RunOnce”.

Now, please navigate to “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion” in the left panel and check if the RunOnce key has successfully been created. If not, repeat the above steps to recreate it. After that, you can close Registry Editor and restart Windows to check whether the error is fixed.

IMPORTANTCE: since making some changes to the current registry condition might cause risks, you can create an exact backup in advance.
1. In the registry editor window, click “File”> “Export” to export your registry.
2. Now enter the file name for your backup, and select “All” in “Export range” section. Click the “Save” button to export your registry.

Method 2. Check and fix disk errors
If “The system cannot find the file specified” error is caused by potential disk errors, you can run chkdsk command to check and repair errors.
1. Click Start button, input “cmd” in the search box and press Enter, right-click the Command Prompt icon and choose “Run as administrator”.
2. In the Command Prompt window, type command “chkdsk g: /f /r /x” and press Enter in order to check and fix possible errors. Replace “g” with the appropriate letter that matches your partition.

Method 3. Restore or repair the missing files
Restoring the missing files is another effective method to fix the issue. This method is quite simple; you just need to run “sfc/scannow” command in the Command Prompt window.

After completion, if everything goes well, the message: “Windows Resource Protection did not find any integrity violations.” will appear.
Method 4. Install Windows updates
If the Windows has not been updated for a long time, the error “The system cannot find the file specified” will occur to inform you that you should install all pending updates. So you need to install them:
1. Press «Windows + I» keys and select “Update & Security”.
2. Click Check for “Updates” and wait.
3. When the list of available updates is revealed, install all of them.
Repeat the same procedure until all needed updates have been installed. After that, you still need to restart the system to finish the installation of updates.
Method 5. Uninstall and reinstall the Drivers
If the error appears after you download the disk driver from the manufacturer’s official website, you can try to uninstall and reinstall the disk driver.
1. Type “Device Manager” in the search box and press enter, double click Device Manager to open it. Expand “Disk Drives” and locate the device you want to uninstall.
2. Right-click the device and select “Uninstall” from the drop-down list.

Then you will be asked if you are sure to uninstall the device, click “OK” button to confirm it. After uninstalling the driver, install the driver again.
Method 6. Make system partition online
If the issue still persists, there are chances that your system partition is offline, then you need to do the following:
1. Open Command Prompt again and run “diskpart” command inside it.
2. When diskpart starts, type “list volume” and press “Enter”: to list all partitions on your computer.
3. Type “select volume 1” and press “Enter”: to select the system volume. If your system volume is labeled by a different number, replace 1 with it.
4. Type “online volume” and press “Enter”.

At last, close Command Prompt and restart your PC.
7. Make sure system partition is active
If “The system cannot find the file specified” error occurs while you are using Windows Backup, you can check if your system partition is set to active to fix this issue.
To do so, you just need to open Disk Management, right-click the system drive (usually C drive) and choose “Mark Partition as Active” option. If this option is greyed out, that means your system volume is already set to active.

Finally, close Disk Management and restart your PC to check whether the error disappears.
Method 8. Format the USB flash drive
If “The system cannot find the file specified” error happens when you insert your USB flash drive or any other removable storage devices, you can format them. To do so, you can right click the USB drive in Windows File Explorer, choose “Format” and follow the guide to finish the formatting operation.
If you fail and receive some format errors, you can use AOMEI Partition Assistant Standard. This freeware can format RAW, corrupted or even write-protected USB flash drive, SD card or other hard drives with ease in Windows 11/10/8/7. If you upgrade to Professional version, you can optimize SSD drive performance, migrate OS to SSD, recover lost partitions and more.
1. Download the freeware, install, and run it. Right-click the USB drive and choose “Format Partition”.

2. Choose a proper file system based on your requirements and click “OK”.

3. Back to the main interface, click “Apply” to commit the pending operation.

Sum up
“The system cannot find the file specified” error on Windows 11/10/8/7 can significantly affect the computer’s functioning. With the above effective solutions, I believe you can fix the error easily.