Using SFC to Resolve the msvcp140.dll File Error
Many users are familiar with the sfc/scannow system file integrity check command, which automatically checks and repairs protected Windows system files, one of which is to fix errors like msvcp140 dll was not found.
Keep in mind that you must run the command prompt as an administrator.
Step 1: Press the Win key on your keyboard and type “Command Prompt” in the search field, then – right-click on the result and select Run as administrator. Alternatively, you can press the Win + X key combination which will open a menu where you can select Command Prompt (Admin).
Step 2: While in Command Prompt, type sfc/scannow on your keyboard and hit Enter.
The system check will start. After the operation is complete, you will get the message containing Windows Resource Protection found a corrupt file and manage to fix it.
Keep in mind that the System File Checker (SFC) cannot fix integrity errors for system files currently in use by the operating system. To repair this file, you must run the SFC command via the command prompt in the Windows recovery environment. You can enter the Windows Recovery Environment from the login screen, by clicking Shutdown, and then holding down the Shift key while selecting Restart.
Here, you can press the Win key and select Settings > Update & security > Recovery, and under Advanced Startup, click Restart now. You can also boot from an installation disc or bootable USB flash drive with a Windows 10 distribution. Select your desired language and then select “System Restore”, then Look for “Troubleshooting” > “Advanced Settings” > “Command Prompt”. Once in the Command Prompt type the following command: sfc/scannow /offbootdir=C:\/offwindir=C:\Windows where C is the partition with the operating system installed, and C:\Windows is the path to the Windows 10 folder.
Once done, close the command prompt and restart the computer as usual.