Sometimes stubborn files or folders we always let you delete do not drop, do not worry in fact, Win7 system from the cmd command can be a good solution to this problem, the following small series for you to introduce the Windows7 under how to use the cmd command to copy and delete folders.
If I want to copy the F-disk file folder to C packing directory, how to use the cmd command to achieve it? Very simple:
xcopy F:file c:file/e
What if you want to delete it? Also simple: Suppose you delete the 123 folders under D disk
del/s/q d:123*.*----(for deleting a subdocument under a folder)
rd/s/q d:123----(for deleting folders)
The/s parameter is a subdirectory
/q parameter is not confirmed
Delete file with the del command, then, is not like the ren command take-All files and folders, Del is also can delete folders?
The answer is no, because the Delete folder must use the RD command, which is called the ^_^ specializing in the operation.
Another alternative to Rd is RmDir, which comes from remakedirectory. The method used is also simple: Rd folder name, for example, RD test. It supports folder names with paths, for example, RD D:test.
Sometimes, RD doesn't do a good job: you let it delete the test folder, but it's arrogant to roll your eyes: The directory is not empty. However, this also can not blame it lazy not work, but it's a bit strange temper: if you want to delete the folder below there are sub files, you have to give rd hat, add a/s parameter, it will happily help you do things, so, the correct way to write is: rd/s test.
If you're a total slacker, just use rd/s test, you may not be satisfied with it, because when you delete the file folder, Cmd always loser to stop and politely ask you: Do you confirm (y/n)? must wait for you to lose a character to knock down the carriage. Commiseration can not blame the government, point back can not blame society, who called Rd has so great power, it once play rogue come, that is who also can not stop--rd risk, delete must be cautious ah. Fortunately, Microsoft for those who are very sure of the deletion and lazy to kill the guy considerate, provides a very convenient parameter/q, which is taken from quiet, officially explained: Quiet mode, with/S delete the tree does not require confirmation. Try again this time: rd/q/s Test, the whole is: a flick of the fingers, ashes, is not the heart of the mind does not bother to feel the feeling?