Cmd exe file is corrupted what to do. exe - what is it? cmd

Hello dear blog readers. — hard recovery disk, this is the topic of our today's article. The last issue was dedicated to .

To treat your computer - Windows and partitions of the hard disk exists special program CHKDSK, which anyone can use.

How to enter it and what steps you need to take to restore Windows and partitions on your hard drive, you will learn in this article.

Restoring the disk

Your computer has ceased to function normally, Windows boots every once in a while or does not boot at all, you hear incomprehensible repetitive sounds and noises from system block. What could be the matter, you ask me?

Most likely one of the fans located inside the system unit is making noise. It is also possible that such noises are emitted HDD- it does not have enough power, it has errors or it will soon fail, this happens. You need to think about buying a new one and keeping the information on the old hard drive for as long as possible.

As I said above, the Windows operating system has a built-in chkdsk utility, with which you can check the hard drive for errors and restore the operating system if it does not boot.

This method does not always work, but in most cases in my practice, using the chkdsk program, it was possible to restore the previous working capacity of the operating system. Windows systems. They can also help you.

There are three ways to run chkdsk on your computer:

  1. Running chkdsk from Windows

Running chkdsk on Windows

This method can be used if your Windows system is working normally and you want to check your hard drive for errors.

We go to My computer.

Right-click on the desired logical drive (C, D, E, etc.).

In the pop-up menu, go to the very bottom and select "Properties".

In the window that appears between the upper tabs "General" and "Equipment" - go to "Service".

Select "Check disk for errors" and go to "Run a check".

Check disk options - check the boxes in the two proposed options: "Automatically fix system errors” and “Scan for and repair bad sectors”, press the Start button.

If the disc is used in this moment, you will be prompted to unmount this volume.

After you turn off this volume, the disk check will start, which may take some time and will depend on the amount of information on this logical disk.

If this is the system drive on which the operating system is installed, then you will be prompted to run this check after restarting the computer. You need to click Scan Schedule and restart your computer.

After restarting the computer, using Windows Vista and Windows 7 will come up with a black window with white letters.

If you are using Windows XP, the window will be blue. We do not press anything and wait 10 seconds, after which it will start from 3 to 5 tests, on average it takes from half an hour to several hours.

At the end of the check, the computer will restart itself and will work in normal mode.

It is important to know! If you do not wait for the completion of this check and restart your computer yourself. The next time you turn it on, you will get a message about checking the disk until you go through it to the end.

Running the chkdsk utility from the command line

If you are a fan of Dos and the command line, or just want to see how the chkdsk utility works in command line then you can use this method.

First of all, you need to press the key combination Win + R (English) K (Russian) on the keyboard, thereby we get into the Program Start or Run. Here is a screenshot for clarity, if you do not understand what is at stake:

A small Run window appears, where you need to type the command, write the desired [volume:] ( logic hard disk) for example and specify a command for further operations or . Here is an example.

A little more detail:

  • - team name.
  • [Volume:] is a logical hard drive.
  • - is set to correct errors on the logical drive.
  • - is set to detect broken (damaged) sectors and restore the part that can be read.

You need to wait a bit and you will see chkdsk program running in DOS. It must pass five tests on the volume you selected. This procedure can take a long time, especially the last fifth test.

After all the checks, the next time you restart the computer, a window with a check disk may appear, which were described in the last paragraphs of the first method of starting the shkdsk program. So get ready for it.

Running chkdsk using a Windows boot disk

Let's say that when you boot your computer, Windows constantly restarts at the initial stage of loading, or a black screen just comes out. There is a second way to use or how to run CHKDSK, but for that you should have handy boot disk Windows.

Thank you for reading me

Windows operating systems are equipped with internal tools for emergency diagnosis of problems and their subsequent resolution. If the user does not have the opportunity to use additional software, a standard means The OS does not help, you can use the chkdsk command. The command and the utility that it runs shows excellent efficiency in Windows crashes.

Launch through "Disk Properties"

If the OS is stable enough, the utility can be run in windowed mode. On the different versions Windows has almost no difference in launching from "Disk Properties":

The system will prompt you to restart your PC. Check will run during download. system disk. If the user has checked the appropriate checkboxes, Windows will fix corrupted files and sectors.

Run from command line

The command line is turned on either with the Win + R key combination, or in the start menu, where there is a search bar (you need to enter the query "cmd"). You need to run the command line only as Administrator.

In the black window that opens, enter the command "chkdsk C: / F", press the enter key.

  • С: - the name of the disk to be checked, can be changed;
  • /F - the type of operation that the utility will perform.

If launched from the command line, the scan starts immediately, without rebooting the PC.

How to start if Windows won't boot

Some critical errors, unsuccessful updates and operations lead to the fact that the operating system cannot fully turn on. Neither safe mode, nor running the latest working version does not help. In this case, you should:

  1. Connect a boot disk or USB flash drive with Windows to the computer;
  2. Enter BIOS and set startup not from hard drive, but from the connected media;
  3. Start the device;
  4. In the OS installation menu that opens, find the "System Restore" button, click;
  5. Click "Next" when the program prompts you to use OS recovery tools;
  6. Click "Command Prompt" in the window that opens.

When the command prompt opens in front of the user, you need to use the algorithm from the previous section - enter the chkdsk command and wait for system diagnostics / troubleshooting.

CHKDSK options

The /F value is not the only possible command option:

  • /F - diagnostics and correction of failures on the specified disk;
  • /V - display a message about cleaning or the full path for each file on the disk;
  • / R - search and restore damaged hard disk;
  • /X - forced shutdown of the disk;
  • /I - lowering the criticality of file evaluation during diagnostics;
  • /B - re-evaluation of clusters considered as damaged;
  • /spotfix - spot fixing errors;
  • /sdcleanup - collection and removal of unnecessary files;
  • / offlinescanandfix - offline scan, fix errors in the specified drive;
  • /markclean - marks the disk as clean if no errors were found during the check.

It is not necessary to run the utility multiple times if the user needs to execute different functions. The command might look like this: "chkdsk C: / F / R". Add or remove utility parameters as needed.

How to remove CHKDSK autoload at OS startup

If the utility has fulfilled its functions, but continues to start every time the PC boots, it can be disabled in the Windows registry:

  1. Open the registry editor, type "regedit" in the start menu search;
  2. Go along the path "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager";
  3. In the right part of the window, find the "bootexecute" parameter, double-click on it;
  4. Enter value autocheck autochk /k:C *, save.

CHKDSK- short for phrase check disk(disk check). This is the application that is present by default in operating systems like Dos and Windows. It is necessary to check hard drives for errors and the subsequent possibility of correcting the errors found.

It can be launched both from under Windows and through the command line. The second one will be discussed in more detail in this article.

So, let's say you already have a command prompt running with administrator rights. When you enter the chkdsk command without parameters, information about the status of the current disk will be displayed.

The command is entered as follows:

Chkdsk [volume:][[path] filename] ]

All that is included in square brackets is the command parameters that we can enter, both all together and separately, depending on our needs and wishes.
It is worth analyzing the parameters and their purpose in more detail.

Options

Parameter [volume:]

Specifies the drive letter (required with a colon), mount point, or volume name.

Parameter [[Path] filename]

This parameter specifies the location and name of the file, in the case of working with several names, the names of all files are indicated. For them, the command must be used wildcards- * or?.
The degree of fragmentation will be checked for the file(s).

Parameter

This option can set error correction on a locked drive. If the disk has not been locked, then a prompt is displayed to check it at the next boot.

Parameter

The /v option displays the names of the files (directories) being checked.

Parameter

This parameter is used to detect bad sectors and restore the readable part.

Parameter

Can only work with file system NTFS. If necessary, it can initiate a volume shutdown. Any descriptors already loaded will be invalid.

Parameter

Works the same way with NTFS. The parameter performs a less thorough check, which has a positive effect on the execution time of the chkdsk command.

Parameter

Like the previous two, it only works with the NTFS file system. Just like the previous option, it can reduce the running time of the chkdsk command, but by skipping cycles in the folder structure.

Parameter

Works the same way with NTFS. If the size is not specified, then the parameter displays the current size. But typing [:size], will set the log size.

Parameter

Help on the command line.

Example of using parameters

You need to check the disk in drive H. Fix detected in Windows. The command will look like this.