Win7 64-bit Ultimate Edition system with cmd command to quickly copy and delete folders

  
                                     

Specific method:

1. Copy the folder. If I want to copy the file folder of the f drive to the root directory of the c drive, enter the following command:

xcopy f:file c:file /e

2. Delete the folder. Assuming delete the 123 folder under the d drive, enter the following command:

del/s/qd:123*.* ----(used to delete subfiles under the folder)

rd/s/qd:123 ----(for deleting folders)

/s parameter for subdirectory

/q parameter for no confirmation

parsing : Delete the file with the del command, then this command is not like the ren command to eat files and folders, del can not delete the folder. Because the delete folder must use the rd command.

Another way to write rd is rmdir, which comes from ReMakeDirectory. The method used is also very simple: rd folder name can be, 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 arrogantly turns to you: the directory is not empty, if there are subfiles under the folder to be deleted You have to give rd a top hat and add a /s parameter, it will happily help you do things, so the correct way is: rd /s test.

Copyright © Windows knowledge All Rights Reserved