Windows Operation Command Summary: Common doscommand line operation commands all have these !, Operation Command Line

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.