Windows Operation Command Summary: Common doscommand line operation commands all have these !, Operation Command Line
This article is a list of common windows operation commands I used in my daily work. I am grateful to the poor information on the Internet. To save your query costs and facilitate your work, I will record it. Before the list is officially listed, a very important operation should be prompted. That is, open the windows command line window in the specified folder. Move the mouse over the corresponding folder, hold down the shift key, right-click the folder, and click "Open command line window here" to enter the corresponding folder command line window.
1. Switch directory --- windows Command Line Operation Command 1. Switch from drive C to drive E or drive D and enter "E:" To press Enter.
2. Open a folder on the E drive and enter "cd test" to open the test folder on the E drive.
Note that the second line shows "E: \ test>", which indicates that you are in the test folder. Enter "cd .." to return to the upper-level directory. Enter "cd/" to return to the root directory. 2. view the folders and files in the current directory. --- windows Command Line Operation Command
Enter the "dir" command.
3. Create a folder, file --- Example of the mkdir folder name \ subfolder of the windows Command Line Operation Command: Create an app folder in the myfiles file on drive D. You can find the myfiles folder, press the shift key, right-click the folder, and click here to open the command line window, enter the command line interface of the folder, and then enter mkdir app. Note: note that the separator is \, instead of/4. delete folders and files.
--- Windows command line operation commands sometimes you want to delete a file or folder, but prompt you, what if you need administrator permission? In this case, you can easily delete these files or folders by specifying the following command line. Re E: \ testre is the command to delete empty folders. If the folder to be deleted contains subfolders or subfolders, you will be prompted "the directory is not empty ".
Re/s E: \ test "re/s" is the command to delete non-empty folders. After the command is entered, a confirmation prompt is displayed.
After the re/s/q E:/test "re/s/q" command is entered, no confirmation prompt is displayed. Del E: \ test \ test2.txtdel is the command for deleting files.