Unable to delete file, unable to read source file or disk solution

  


“Unable to delete file, unable to read source file or disk> Mainly due to illegal file name of windows. What you want to delete Generally it is a file or folder containing ”.” or ”:”, the size is generally zero.
Delete Method: Start-Run-cmd Open the command line format input “cd You want to delete the file path & rdquo ;. (such as & ldquo; cd c: \\ & rdquo;)

then Run & rdquo; dir /a /x & rdquo; dir is a file command, /a is to show all files including hidden file /x is the file name showing 8 bytes (1 Chinese character is 2 bytes). (If I want to delete the folder "argh.", through the above command, I get the folder "argh." The 8-byte folder name is ”argh~1″, and the ”rd /s argh~1″ can delete this empty folder. If you are a file, use the del command, remember to add the extension, for example ”d El argh~1.txt”, if this is a hidden file, please use the command ”del argh~1.txt /ah”, /ah parameter can delete hidden files. Since the launch of Windows XP operating system, people are enthusiastically using Win XP when they paid little attention to the DOS operating environment that comes with Win XP, Win XP actually has enhanced the functional part of DOS commands, so-called & ldquo; old trees to open a new flower & rdquo ;,

let Let's take a look at the changes in the functionality of DOS under Win XP.

command: Dir, list of files, directories increase the parameter: /- C Parameter Description: DIR list of files, the file size is displayed when a directory, its value in thousands separated, use this parameter & ldquo; DIR /-C” will remove the separator in the display to meet the visual habits of some people.

increase parameters: /Q Parameter Description: Windows is a multi-user operating system, use this parameter & ldquo; DIR /Q & rdquo; column file, directory, will show the user properties file directory. Add parameters: /T:C, /T:A, /T:W Parameter Description: Use this parameter to be “DIR/T:C”,“DIR/T:A”,“DIR/T:W” Displays the file, the creation time of the directory, the last access time, and the last modification time. Add parameter: /X Parameter Description: When using this parameter, “DIR/X” column file and directory, the file name of “ld”;8.3” format will be displayed for long file name.

command: CD, change directories to increase parameters: /D Parameter Description: The role of this parameter is the rapid change in the current directory, such as the current directory is C: Windows, use the command & ldquo; CD /DE: Tools & rdquo; fast Switch to the E:Tools directory. Note: This parameter can only be used in the DOS window obtained by entering “CMD” in the “Run” folder of Win XP.

command: MD, create the directory Function: This command parameters did not increase, but enhanced functionality, it can build a multi-level subdirectory, for example, use the command & ldquo; MD AABBCCDD & rdquo; will create a one-time AA, BB, CC, DD four subdirectories. In the old version of DOS, if there is no AA subdirectory, it is impossible to directly create a deep subdirectory such as BB under AA.

command: RD, delete the directory increase parameters: /S Parameter Description: Use this parameter that is & ldquo; RD /S & rdquo; to remove a directory tree that delete the directory and all subdirectories and files in a directory, rather The DELTREE command in previous versions. Add parameters: /Q Parameter Description: When using the /S parameter above to delete the directory tree, the system will ask the user to confirm whether it is really necessary to delete. If the /Q parameter is used at the same time, RD/S /Q” will be canceled when the delete operation is performed, which is equivalent to the /Y parameter of the DELTREE command.

command: DEL, delete files or directories parameters: /F Parameter Description: Use this parameter that is & ldquo; DEL /F & rdquo; to delete read-only files. Add parameters: /S, /Q Parameter Description: Use this parameter to “ld/; DEL/S” has the same effect as “RD/S”, which deletes all subdirectories and files under the directory and directory. Using the parameter /Q at the same time cancels the system confirmation when the delete operation is performed. Add parameters: /A Parameter Description: Delete files other than the specified attributes or specified attributes. /AR, /AH, /AS, /AA respectively delete read-only, hidden, system, archive files, /AR, /AH, /AS /AA indicates that files other than read-only, hidden, system, and archive are deleted. For example, “DEL/AR *.*” indicates deletion of all read-only files in the current directory. “DEL/A-S *.*” means deleting all files except the system files in the current directory.

command: attribute ATTRIB, change the file or directory to increase parameters: /D Parameter Description: In Win XP, we can not file or folder is set to system properties, can only be read-only, hidden, or archive Attributes. With the parameter /D use the ATTRIB command to set all the properties of the file, the settings must be used with the parameter /S. For example, "ATTRIB /S /D +S D:Study", the role is to set the D:Study folder as a system folder.

command: the Format, format the disk increases parameters: /FS: filessystem Parameters: Type specified file system (FAT, FAT32, NTFS) formatted disk, for example, & ldquo; format /FS: NTFS & rdquo ;.

command: DATE, TIME, display system date and time increase parameters: /T Parameter Description: This parameter i.e. & ldquo; DATE /T & rdquo;, & ldquo; TIME /T & rdquo; only display the current date and time, Instead of entering a new date and time.



Copyright © Windows knowledge All Rights Reserved