Home  >  Article  >  Computer Tutorials  >  CMD command example: enter the program and perform a delete operation

CMD command example: enter the program and perform a delete operation

WBOY
WBOYforward
2024-01-24 17:36:05866browse

CMD command example: enter the program and perform a delete operation

How to use the CMD command to delete the program after entering it is better to give an example

Delete one or several files.

DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names

ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names

names are parameters used to specify a list of one or more files or directories. Wildcards can be used to delete multiple files. When a directory is specified, all files in that directory will be deleted.

/P Prompt for confirmation before deleting each file.

/F Forcefully delete read-only files.

/S Delete the specified file from all subdirectories.

/Q Quiet mode. When deleting a global wildcard, do not confirm.

/A Select files to delete based on their attributes.

attributes R read-only files S system files

H Hidden File A Archived File

- Prefix for "no"

If the command extension is enabled, DEL and ERASE will change as follows:

The display syntax of the

/S switch will be reversed, that is, only the

Deleted files instead of showing files not found.

For example, delete 1.TXT under C drive

DEL C:\1.TXT

Delete 1.TXT under the ABC folder on drive C

DEL C:\ABC\1.TXT

Delete all TXT files under C drive

DEL C:\*.TXT

How to delete computer software

5/6 Step by step reading

When usually uninstalling software, you usually find the software you want to uninstall in the start menu, then click on it, and then click Uninstall.

2/6

Of course, you can also uninstall it in the air panel, click the Start panel option; click the Program option on the page that opens.

3/6

Then click the Uninstall program option in the program page that opens; find the program you want to uninstall in the program page that opens, right-click and uninstall.

View the remaining 1 picture

4/6

The above two methods are the most commonly used when uninstalling software, but this uninstallation is not clean. You can uninstall it through some third-party software, such as Computer Manager, 360 Security Guard, etc.

5/6

In fact, after the program is installed, a folder will be automatically created. In this folder, there will be an Uninstall.exe program. You can also double-click it to uninstall it.

6/6

Of course, there is no absolute cleanliness. Some software may be overbearing, such as VideoStudio, Microsoft Visual Studio, etc., and the uninstallation will not be clean no matter which method is used to uninstall. Some of them need to clean the registry. You can Delete the folder where it is located, and then clean the registry if necessary.

Computer Add and Remove Program cannot be opened

Why can't I open Add or Remove Programs in Control Panel?

The solutions that cause this problem are as follows:

1. This problem may occur if a registry key is missing.

solution:

To resolve this issue, add the missing registry key:

Click Start, then click Run.

In the Open box, type cmd and press Enter.

In the command window, type regsvr32 mshtml.dll, and then press Enter.

Click OK to confirm that this registry key has been added.

In the command window, type regsvr32 shdocvw.dll -i, and then press Enter.

Click OK to confirm that this registry key has been added.

In the command window, type regsvr32 shell32.dll -i and press Enter.

Click OK to confirm that this registry key has been added.

Close the command window.

2, System Restore

3. Insert the system disk and enter the fault repair console to fix it

4. Your rundll.exe is lost because the anti-virus software may have deleted it when it was cleaning the virus. Find a machine with the same system as your machine and copy the file on his machine to Just install it on your machine. This file should be in C:\windows\syetem32 (XP system)

For other systems, you should be able to find them by searching in the Windows system folder

5.1. Click "Start" → "Run" → enter "gpedit.msc" (do not enter the quotation marks) → press Enter or press "OK" → open the "Group Policy" window → expand "Local Computer Policy" " → "User Configuration" → "Administrative Templates" → "Control Panel" → "Add or Remove Programs" → Find the "Remove 'Add or Remove Programs'" item on the right side of the window and double-click it → the "Remove 'Add or Remove Programs'" pops up Delete the program's "Properties" window → select the "Settings" page → select "Not Configured (C)" or "Disabled (D)" → press "Apply (A)" and "OK".

2. Click "Start" → "Run" → enter "Regsvr32 shell32.dll i" (do not enter the quotation marks) → press Enter or press "OK

The above is the detailed content of CMD command example: enter the program and perform a delete operation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:docexcel.net. If there is any infringement, please contact admin@php.cn delete