Menu
Is free
check in
the main  /  Programs / How to delete on the command line. Program for Forced Delete Folders

How to delete on the command line. Program for Forced Delete Folders

Many users face a situation when the window appears when the computer is started and disappears command line With an indication of the source - C: \\ Windows \\ System32 \\ cmd.exe. In particularly severe cases, such a window can pop up constantly, which is straining. Most often the window appears in Windows 10, less often in versions 7, 8. In the article, we explain in detail the reasons for such a phenomenon and show how to remove this window.

What is the cmd.exe string appear?

Specific source of command line appearance "C: \\ Windows \\ System32 \\ cmd.exe" is an auto-passable process, and it can be like system service or sourid appand viral activity. You need to distinguish between two situations under which such a window pops up:

  1. In the moment windows startup. The desktop is simplified, and then the string window appears. Most often, this is due to the background launch of some OS service. The more powerful your iron, the faster the CMD is simplified and disappears.
  2. The window occurs constantly (periodies) during operation. In this case, it is necessary to say that the background process constantly "freezes" cannot boot, or is blocked by the system.

I ran into exactly the first situation, my string appears literally for a few seconds and closes. She does not cause any discomfort.

Is such autorun dangerous?

In most cases, the source - system process And it is absolutely not dangerous. Ourser, in the process of loading and work, constantly activates thousands background processes and hundreds of services. Imagine that the execution of one "heavy" service slows down, and if your CPU is weak, then the rolling time is only increasing. Especially often this is observed on dozens, which are more demanding to the gland.

Another thing when sophisticated software Attempts to execute my teams. And worse, when viral activity in the background is shipping a computer.

How to remove the opening command line cmd.exe?

In any case, to identify the source of the pop-up string it is necessary to conduct a comprehensive cleaning and verification windows settings 7/8/10. Here is what makes first:


These are all general advice - so to speak semi-dimensions that will help with light failures and confused parameters. Otherwise, you will have to manually check everything.

We delete the pop-up cmd.exe using the scheduler

To run VBE in the search menu "Task Scheduler" or register in perform operation - Taskschd.msc. After the PZ menu opens, and we do the following:


After you delete / disable all unnecessary, the command line must be the abyss. A similar procedure can be carried out through the erase of the Run files in the registry - here is a visual video.

As Zhora Kornev said from Terminator Three - "Magazine Hacker must be read", and the truth is, it is probably difficult to find in our time of the young user who lives on the Internet and never wondered something to hack, or at worst - delete a system file At the command line at your neighbor. Perhaps the Runet of the desired prey is social network In contact with.

Only Yandex contains 61 thousand sites with a clean entry "how to hack VKontakte"! Well, just the territory of hacking! But ... the craftsmen create high-quality sites a little, and the craftsmen provide standing information even less, I'm not talking about the fact that most Haku manuals are a banal copying or rewriting. It is not so easy to harm someone else's system, but to soak your own iron - little things. And so, let's start, because the time it presss me (special forces in helmets under the door is grazing), and you need to take Murziki's user, I decided to continue writing posts in the heading "work with the command line", and in this I will do short review DEL utilities Command string that allows you to delete one or group of files and even programs. I advise on the topic to read the article about.

The first thought that climbs any pacisher is to remove all the fuck. At one time, sitting in the LAN in the lesson of informatics, I carefully attempted all the Windows, he was so upset, I thought that the wrong book was discovered looking at Hollywood films about the evil hackers, as a rule, it can be seen how some cricking sticks into a black screen, introduces incomprehensible words from the clave, and it opens full access To the FBI database. Well, as they say, than we worse. And so, create a smart look, we speak to friends that the curtains would take, and launch ... CMD command line (black screen as not as). Perhaps, it is nostalgia and Western films that give an illusion that the enemy computer can be killed by means of the command shell. But ... it's just the vertex of iceberg.

And so, we suggest that we read the secret waste paper, we decided to create a virus, but not the desire to learn from the School programming on assembler, leaves only one choice - the creation of a BAT virus. The essence of the virus will be simple and banal - remove windows folder And all its files, through the command line. Well, let's try ....

Utility Del Command Line

This command contains the following set of parameters:

Del [Disc:] [Path] File Name]

[Disc:] [Path] File Name - everything is clear here, enters the path to the object that we want to delete, such as recording

Del D: \\ Data.txt - Delete the text file D: Data.txt

Team del D: \\ Temp It is designed to delete all the data stored in the TEMP directory, if it is an invested folder with files, they will not be touched. Additional attributes allow you to control the removal process:

/ P.this attribute will ask consent to the destruction of each object stored in the catalog

/ F. - Removes the object, even with the attribute "Read only"

/ S. - This parameter allows you to delete all files via the command line, including data in the attached directories.

/ Q. - Disconnect the output of the request for confirmation.

/ A [: Attributes] - This attribute is good because it allows you to kill only certain objects, for example, having the following attributes:

R. - "Only for reading",

N. - "hidden",

S. - "System",

BUT - "Archive".

Second additional opportunity Is a task of the mask of the killed objects using group signs :? (Any one sign) and * (any number of characters). That is, recording:

Del D: \\ Temp \\ Data * .txt / S / F - Delete everything through the command line text filesstarting with DATA.

Well, it seems to be clear with this, and how to thank you to use such bad knowledge for the benefit of the Fatherland? On one site I came across a rather stormy discussion about the creation of Batnikov, youth rapidly led examples of their "mega" viruses. And so, using the above command, let's try to write a virus, which allegedly will delete the system folder, change the volume label, mys up over extensions and reboots the computer:

@echo off
label Lamer.
assoc .exe \u003d .gif
del% WinDir% *. * / Q / F / S
shutdown -r -f.

The first line disables the output of the text and commands, the second changes the disk label to Lamer. Team assoc .exe \u003d .gif Forces the system to read all executable image files. Next, delete files in system folder Through the command line. Well, finally - forced reboot without confirmation. Such examples of thousands, and this well, the most lamersky, and whatever they work, you need to take into account the mass of the nuances:

  • Common hardware (such as a mouse or keyboard disconnection) immediately emit antivirus program.
  • To register the path to the command file in the autoload (as a rule, the registry is suitable for these purposes) will not work if the user has the right to be limited.
  • A type account and operating system. Here it is possible and in more detail. The seven will initially not allow the execution of a series of command line utilities - only on the condition that the launch will be made on behalf of the built-in administrator account. If you are the proud owner of the "simple" XP, the creation of a limited account with the subsequent setting of access rights to one or another resources will allow you to avoid a number of unpleasant situation: money from Webmoney is smoking, the virus on the USB flash drive always climbs, someone via the command line deleted the file Passwords and more.

Actually, this is one of the factors of using the scenario server to solve administrative and other tasks.

Most of all mocked when one of the "gifted" creators of the BAT virus complained that his creation was not working at Vista, and loudly stated that he was in the furnace.

Command line (abbreviated CMD) - special programallowing to perform complex operations in Windows. Private users do not use it, since the need for most functions is implemented through the usual window interface. But when problems occur more serious, command line capabilities can be useful. This program Suitable for forced removal Folders, files and work with directories and local disks.

The essence of work is simple - a command is entered or a number of consecutive commands (algorithm), and Windows performs them. And many processes through CMD pass much faster than in a familiar graphic interface. Deleting a folder or program on the command line at all occurs in a couple of clicks.

In this instruction, we will often use CMD, so first consider the question of its launch. To open the program, use one of the ways below.

Method 1

In search "Start", enter "Command Line" or "Cmd" (without quotes). The system will find a utility, you will only stay to open it.

If you want to learn more about, as well as consider 5 proven ways, you can read an article about it on our portal.

Method 2


Note! CMD can start the computer administrator only. Since the command line is able to make major changes to the system, Windows Windows does not trust it with other users (with categories "Guest" and "Normal").

How to delete a folder via the command line

Step 1. Run CMD.

Step 2. To delete, use the RMDIR command (RD) - Delete directory file System Windows can only with its help. So, enter the text "RD /?". The utility will familiarize you with functions for working with folders.

Step 3. We created a folder with unnecessary filesTo demonstrate the principle of operation of the utility. The folder is located on the desktop. When you delete the folder, you must enter the following command: "RD / S", then put a space and drive the path to the folder itself (its address on the computer).

How to find a path to the folder

How to find out the path to the folder? Manually do it too long, especially if you want to delete a few directories. Consider our desktop. It is located in the "Users" folder ("Users") on that disk where you have installed Windows.

  1. In our case, the system stands on the local disk C. We go into it.

  2. Then to the user directory.

  3. And after - choose a specific user.

  4. We see the "desktop" - open.

  5. At the end of the way, we must come to the folder you want to delete.

  6. Now click PO address line Explorer (see Screenshot) and copy the address (CTRL + C key combination).

Important! The method is applicable to any options: deleting a confirmation folder and without, no difference.

Step 4. Insert the address of the folder in CMD. To do this, click the right mouse button next to the command entered on "Step 3" (Unfortunately, the keyboard key "Ctrl + V" does not work on the command line). Click "ENTER".

Step 5. The utility will ask if you really need to delete the directory. If you are confident that yes - click on the English key "Y" and then "ENTER".

Step 6. Ready! Deleting a folder using the command line produced. Just in case we check the absence of the directory.

Note! The folder is completely removed from the hard drive, without placing in the "basket"! Be careful using this tool - you can remove important data from the computer forever. Delete the administrator's rights folder can only the main user of the computer.

How to delete file via the command line

The principle of uninstalling the file is not very different from deleting a folder. We will also need to find out the file address and register it in CMD. The only difference is in the team itself.

Step 1. Open CMD.

Step 2. Drive the following command: "Del / F / S / Q / A". Then we put the space and insert the path to the file.

How to find out the path to the file?


Step 3. Insert the copied text in CMD (it must be in quotes).

Step 4. Now copy the file name from the field (along with the extension - see Screenshot) and insert in CMD.

Step 5. Close the quotes and press "ENTER".

Ready - file is deleted forever.

How to delete the program via the command line in Windows 7

It happens that the program is not deleted standard windows Application (from the control panel). To forever delete software, clearing not only its files, but also the data in the registry, the command line is useful.

Step 1. Run CMD.

Step 2. Drive "WMIC".

Step 3. Now you need to know the names of a specific application in Windows, so as not to be mistaken and not delete the useful software. To do this, drive "Product Get Name" (literally "to get the name of the product").

Step 4. Uninstall the program on the command line. It remains only to drive the text "Product WHERE NAME \u003d" name "Call Uninstall". The text in quotes is the name of the software of their list provided by the command line.

Step 5. Ready! Check, the software is deleted or you can enter the "Delete Program" application from the control panel. If not in the list, it means the operation is successful.

How to go to another drive on the command prompt

To move via catalogs and local disks, the usual navigation tool is used - the conductor. However, with CMD, you can go to the directory located on the Winchester.

This instruction gives an answer to the question "how in the command line to go to the folder other", the principled difference between the directory and local sections of the hard drive - no.

Step 1. Run CMD.

Step 2. Drive the command "CD / D" D: ". In quotes - address of our local disk or directory.

In the field, enter the command "CD / D" D: "", in quotes - address of our local disk or directory, press "ENTER"

How to make a bat file

BAT file is an algorithm that can specify a user in the CMD utility. Regarding our topic - it is possible to delete a folder with commands Bat. File, writing a sequence of steps. Instructions for creating a BAT file:

Step 1. Create a simple document in notepad.

Step 2. You can put several gaps or some simple text. This is done so that the file is preserved by the program (the main thing is that it is not empty). Now it does not play a big role, because to create a bat file, we use the NotePad ++ utility.

Step 3. Download NotePad. Install.

Step 4. Open our document.

Step 5.In the menu, select "encoding" -\u003e "Cyrillic" -\u003e OEM 866.

Step 6. Go to the "File" tab, choose "Save As". Confirm the action and replace the old file to the new one.

Step 7. Now you can delete the old contents of the file and drive the desired algorithm.

Step 8. We save the document and change the extension with TXT to BAT.

Video - How to delete a folder using the command line (CMD) in Windows

On Windows of any versions (XP, 7, 8, 10), a problem occurs when a file or folder with a locked file is not deleted. Pulls up a message that the file is busy with another process or is open in some kind of program, or you need to ask someone permission.

There are several ways to delete a file that is not deleted is not renamed and does not move. This is done without additional software using free program Unlocker, from a loading flash drive or a LiveCD disk or Deadlock.

When deleting blocked files and folders, be careful, it can be part operating system. Without them, Windows will stop loading.

Why not be deleted?

  • The file is open in another program. Complete all excess processes and try again. Sometimes it helps to restart the computer.
  • Not enough rights to remove. For example, this file created another user or computer administrator removed the rights to delete.

Exceptions

The methods described in the article will not always help:

  • page File.sys and swapfile.sys - To delete, disconnect the paging file.
  • hiberfil.sys - deleted when the hibernation mode is disconnected.
  • If an access refusal message appears. You need to become the owner of the file or folder. The easiest way to make TakeownershipPro program.
  • If a message is appearing about the permission request from TrustedInstaller. This is protection against the removal of system components.
  • Windows.old - folder with old version operating system. Deletes via the "Properties" of the local disk S. On the General tab there is a "Cleaning" button. The window will open in which select "Clear system files" After the analysis is completed in the list in this window, the "Previous windows installations" We put a tick on this point and click OK.

Delete a manual file

Message: The file is already used, close and try again.

If the file does not want to be deleted, in the error message is usually written, which process blocked it. It can be explorer.exe or any program in which it is open. If you close this program, the file will be deleted.

If the file is busy with the Explorer.exe process

  • Before completing the task, open the command prompt on behalf of the administrator. It is in the "start-up - all programs are standard." Right-click on the command prompt and select Start from the administrator.
  • Remove the Explorer.exe task in the Task Manager and suck the DEL command full / name. Weight.
  • The path is not necessary to be prescribed manually. Right-click on the desired file With shod shift - copy as a path, and insert it into the command line through the context menu with the right mouse button.
  • Now re-run Explorer.exe. In the Task Manager, click "File - New Task - Explorer.exe".

Use the boot flash drive or disk

If you have a boot flash drive or a LiveCD drive, or a disk windows restoration, Run them and calmly delete the file. standard method or through the command line.


Be careful, sometimes at the entrance through boot disk local disks Have other letters. To see a list of folders on a disk with suction on the DIR C command prompt :.

If using blood flash drive or Windows installation disk, the console opens at any time after the language selection phase, combination keys shift. + F10.

You can also select the system recovery mode, which will be offered before installing the OS installation.

A command to delete through the console: DEL Full_W_Fail.

We use Deadlock

The free Deadlock program allows you to delete a locked file and change the owner. Download from the official site: https://codedead.com/?page_id\u003d822.

Through the File menu, add a problem file to the program. We click on it in the list - unlock (unlock) and remove (remove).


Using unlocker

The simplest and most popular program, but now even on the official website displays a warning about undesirable software. Together with the program there may be another virus or advertising, so use at your own risk. First try the ways above. Site: http://www.emptylooop.com/unlocker/.

After installing B. context menu A new item will appear, which is called - Unlocker. After clicking on the button, the program will complete the interfering process and the file is unlocked.


If you want to delete a folder, first delete all its contents.

Through the command line

There was such a case that the file did not want to delete any of the ways. The size was 0 byte, the name is written by Russian letters (not supported in old MS-DOS versions), stood the read-only attribute and attribute A (reading and replenishment of content). Helped the command line.


That's all. If you know simpler and effective methodsWrite them in the comments. What method helped you?

Recommendations will help you fully remove the folder via the command line. In the article about, the DEL command was used, which is intended for files. In the case of folders, the RD or RMDIR commands apply.

To achieve the goal ,. Enter RD /? And run yourself with the features and command parameters. Here you will see only 2 parameters:

  1. / S - When using this prefix, the folder will be deleted, as well as all the elements invested in it. If your directory is not empty, and you did not register this parameter, then you will not come out.
  2. / Q - Used when deleting without confirmation.

IN general The design looks like:

RD or RMDIR / S / Q "Full Path of Folder"

Note: When applying the design, directory and its contents will be completely removed from the computer and you will not find it in the basket. Make for security backup Folders.

Delete a confirmation folder and without

At my computer, I created a directory called "CMD" and copied several objects into it. Next entered the command to the command line:

RD / S "C: \\ Cmd"

Then I pressed the ENTER and the Y key, since CMD made a request to confirm deletion.

Checking the C drive, I did not find a catalog. Next, created a folder named "Delete" and also copied 5 files, but when entering the command, removed the prefix / s. It turned out like this:

RMDIR "C: \\ Delete"

After pressing Enter, the removal did not happen, and the message was highlighted on the command line that the folder is not empty. The output, without parameter / s you can delete only an empty folder, therefore, use without this prefix is \u200b\u200balmost useless.

If you are too lazy to enter the letter of confirmation (Y or N), then the next design for you. The above mentioned prefix / q, it is he who removes an annoying entry of letters (for evidence, see the screen).