cmd force delete folder command

Delete all files in a folder cmd command

Delete all files in a folder cmd command is “del folder name \*”.

1, while holding down the keyboard “win” key + “R” key to open the Run window, in the Run window, type “cmd”, and then click the “OK” button to open cmd:

2, open cmd, in cmd, type “del” plus space, in order to quickly get the need to empty the folder name, you can drag any one of the folder file to cmd:

3, in cmd will be deleted from the file name, and then enter the “*” sign, click the Enter key on the keyboard:

4, the system will be prompted whether to delete, enter “Y ” to confirm the deletion, this time all the files inside the folder will be deleted:

What is the command for “Force Delete File”?

1, first of all: in the start – run, in the run text box type cmd –> enter, wiXPn7 directly in the search box type cmd –> enter

2, in the pop-up black run window inside the input figure: del/? —> and then hit the Enter button. This will show the help information of this command. This screenshot of the window is changed properties, the color is not black. Just type the above command in a DOS window.

3, according to the help of the information to get the command to use is: del [parameters] [path folder or destination file]

For example:

To delete the “TimeEventNSIS.log” file under the c disk

This command is written as: delC:\TimeEventNSIS.log

If the deletion is mandatory, then write: del/F/S/QC:\TimeEventNSIS.log

If the deletion is a folder, then write: del/F/S/QC:\XXX folder

4, the last is, of course, the return to the execution of it! Of course this command can also use wildcards.

such as: . *? These

For example, to force the deletion of C:\XXX folder below all the notepad files.

Then the command is: del/F/S/QC:\XXX\*.txt —->Enter

You can delete all the notepad files under the C:\XXX folder.

1, third-party software tools: ice blade, unlock are forced to delete files, viruses, Trojan horses file powerful tool.

You can search directly in Baidu, download and install the use. The operation is very simple, watching the Chinese subtitles can be operated.

There is no need to repeat. If it is a virus, Trojan horse file is recommended to be deleted in safe mode!

2, 360 Security Guard, if their computers have been installed on the 360 Security Guard, and lazy down other software, then directly with the 360 forced to delete files. Right-click on the file, select “use 360 forced to delete”, carefully determine the file to be deleted, click on the file shredding.

3, if you click to crush the file can not be forced to delete, the file process is still hanging in the background, you need to delete the process, if you do not want to use the task manager to find the process, do not want to bother to log out of the computer or reboot the computer, then right-click on the file, select the “use of 360 to unoccupy the same This can be done by right-clicking on the file and selecting “Uninstall with 360”, and then forcing the file to be shredded.

Win7 operating system using the CMD command to force the deletion of files graphic tutorials

We all know that the CMD command is the Windows system comes with, with a very simple, powerful. Recently, there are Win7 operating system users want to delete unwanted files, but found that these files can not be deleted, to crush it can not be deleted, how to do it? Encountered such a problem, I graphic and you explain the Win7 operating system using CMD command to force the deletion of files tutorial.

Specific steps are as follows:

1, in the search box, type cmd – Enter;

2, in the pop-up black run window inside the input figure: del/? —” and then hit the Enter button;

3, as long as the DOS window to enter the above command on the line;

2, according to the help of information to get the command to use is: del [parameter] [path folder or destination file]

For example:

I would like to delete the c-disk under the” TimeEventNSIS.log”

This command is written as: delC:\TimeEventNSIS.log

If the deletion is mandatory then it is written as: del/F/S/QC:\TimeEventNSIS.log

If the deletion is of a folder then it is written as: del If you are deleting a folder, then write: del/F/S/QC:\XXX folder;

3, and finally, of course, enter to execute it!

Of course, this command can also use wildcards.

such as: . These

For example, to force the deletion of C:\XXX folder below all the notepad files.

The command is: del/F/S/QC:\XXX\.txt —-> Enter

You can delete all the notepad files under the C:\XXX folder;

4. Finally, if you delete a file by mistake, please use a third-party file recovery software to recover it, or else overwriting the write will result in the loss of the file measurement bottom.

The above is also Win7 operating system using CMD command to force the deletion of files graphic tutorials. If you have a file that can not be deleted, then you can use the CMD command to force the deletion of files, a simple and practical method, I hope to help you.

How to force delete a folder on a computer

How to force delete a file

Sometimes a file, or folder on the system can’t be deleted how to delete it, prompting that the file is in use and so on. This can be solved by using the command Force Delete.

First of all, I would like to explain the method of deleting a folder forcibly: when deleting a folder, you can’t delete it, and the prompts shown in the figure below appear.

Then we will use the DOS command to force the deletion, click the desktop Start button, find the Run option.

Click Run, type CMD in the Run text box, and then Enter. Then at the DOS command line shown below, type: rd/s/qE:\acd, Note: rd/s/q followed by the path and folder name of the folder that needs to be forcefully deleted.

Again, the method of deleting files is explained: when I delete the file in the figure below, it is prompted that the file is in use and can not be deleted. Then I will DOS command to force the deletion of this file, also in the DOS command line inside the operation,

In the command line enter: del/s/f/qe:\QXOpenGame.exe, Note: del/s/f/q followed by the need to force the deletion of the file is located in the path and the folder name, the file name should be brought to the end of the extension.

After entering, the original file that could not be deleted has disappeared.

Win7 environment using CMD to delete any file command syntax of the whole

First of all, open the Command Prompt administrator, open the run and enter: CMD

A, delete the file syntax of a:

rd directory name/s

rd/s directory name

The two kinds are deleted before the deletion of the query to delete the target directory including all content.

Syntax for deleting files:

rd directory name/s/q

rd/s/q directory name

These two types of deletion do not ask before deleting all the contents including the target directory.

Three, remove the attribute and delete the file syntax:

CMD in the long file name, folder name of the shortcut input:

Enter the first two letters of the file name, folder name, press the Tab Ken, will be automatically populated with the long file name. To delete a folder or file under CMD, first determine whether the folder or file has special attributes, such as “system”, “read-only”, “hidden”.

To remove a file attribute (-s system -r read-only -h hidden):

Folder:

attribc:\windows-s-r-h

File:

attrib-s-h-rc:\windows\autorun.inf

Deletion Commands As follows:

Delete folder (empty):

rdc:\windows

Delete file:

delc:\windows\autorun.inf

Note: You can omit the path if it is operated under the current path. Such as: rd new folder or del new file.txt

Four, CMD environment to force the deletion of files:

delete you want to delete the file path filename, in this folder without the path.

1, DELTREE – delete the entire directory command:

①, function: the entire directory and its subordinate subdirectories and files to delete.

②, type: external command

③, format: DELTREE [disk:] pathname

Usage: The command can be a step in the directory and all the files under the directory, subdirectories, and lower subdirectories are deleted, and regardless of the file’s attributes for hidden, system or read-only, as long as the file is located in the directory under the deletion of DELTREE are treated the same. DELTREE deletes all files, subdirectories and lower subdirectories, regardless of whether they are hidden, system or read-only. Be careful when you use it!!!

2, delete file command DEL:

①, format: DEL[d:][path]filename[/P]

②, type: internal commands

③, function: to delete the specified file or files, can not be used to delete subdirectories. The function of parameter /P is to make CMD ask the user to approve each file before deleting it, which makes it possible for the user to selectively delete some files

Example: C:\DELTEXT3

This command will delete the TEXT3 file under the current directory of the current disk.

3, rd delete subdirectory command

①, function: delete the directory from the specified disk

②, type: internal commands

③, format: rd [disk:] [pathname] [subdirectory name]

Usage:

①, the subdirectory before the deletion of the subdirectory must be empty, that is, you need to enter the subdirectory, use del to delete it. That is to say, you need to enter the subdirectory first, use del (the command to delete files) to delete the files under the subdirectory, and then go back to the previous directory and use the rd command to delete the subdirectory itself;

②, you can’t delete the root directory or the current directory.

Example: the test subdirectory in the kamdy subdirectory of the C disk is required to be deleted, the operation is as follows:

First, the test subdirectory will be deleted empty files;

c:\delc:\kamdy\test\*. *

Delete the test subdirectory

c:\rdc:\kamdy\test

It’s ok if you delete a folder named kill under the D drive rd/s/qd:\kill.

/s deletes all subdirectories and files under the specified directory in addition to the directory itself for deleting the directory tree.

/q Quiet mode.

/s Deletes the directory tree without asking for confirmation.

If you delete a file by mistake, you can recover it with the UNDELETE command, which I’ll describe below.

V. Recovery of deleted commands UNDELETE:

1, Format: UNDELETE (just deleted out of the file name)

2, Type: External Command

3, Function: Recovery of mistakenly deleted files

But to remind you, when accidentally delete one or more files, it is best to immediately use the UNDELETE command to recover, otherwise, just afraid of a long night, your disk may be saved or copied in other files, then these accidentally deleted files will be very difficult to recover.

If your subdirectory wps will be the first file are deleted, then you can immediately use C:\UNDELETEC:\wps recovery, as long as you enter the first letter of each deleted file on the line.

In WindowsXP, 2000, and NT, you can use the rmdir command to delete an entire directory. For example, if I want to delete all the directories and files in the test directory, the syntax is:

rmdir/s/qtest

Where:

/s is for deleting all the subdirectories and files in them.

/q is to stop it from asking me Yes or No when deleting files or directories.

You can also specify a path before the directory you want to delete, for example:

rmdir/s/qd:/temp/test

This means to tell the computer to delete everything in the test folder inside the temp folder on disk drive D, and to stop asking me if I want to delete it.