What should I do if the U disk file cannot be deleted?

  
What should I do if the files in the USB flash drive cannot be deleted? I don't know if you have heard of the method of deleting files under DOS. Do you know how to do this? Do you know the DOS related file deletion command parameters? Now I will summarize it for you by the System Home. To delete a file, we must first create a text file in the file, enter cmd, and save it as 1.bat. Then double-click to run, this is the way to run the dos command. If you delete one or several files: DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names or ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names where names specifies one or several files or directory listings, ie the path and file name of the file. Wildcards can be used to delete multiple files. If a directory is specified, all files in the directory will be deleted. /P Prompt for confirmation before deleting each file. /F Forces the deletion of read-only files. /S Removes the specified file from all subdirectories. /Q Quiet mode. No confirmation is required when deleting global wildcards. /A Select the file to delete based on the attribute. Attributes R Read-only file S System file H Hidden file A Archive file - Indicates the prefix of "No", for example, in DOS, the current prompt is H:, directly enter del help.txt, then delete the current directory A file called help.txt. If you want to delete a file named help.txt in the temp subdirectory under the C directory of the C drive, the command format is: del c:\\windows\\temp\\help.txt 
Copyright © Windows knowledge All Rights Reserved