How to handle the file name with space in DOS command

Source: Internet
Author: User
If you need to view a folder with spaces in DOS (such as documents and Settings,program files


folder, you can have the following two kinds of processing methods:
1, add quotes to the folder. such as C:/>CD C:\ "Documents and Settings"
The good thing about this is how long the file name can be displayed.
2, as a general DOS system only supports the 8.3 format file name, so in DOS encountered long file name folder


, take the front 6 digits, then add a ~ sign and a number 1 in the back. You can enter C:\>CD c:\docume~1


Documents and Settings folder. When a repeat occurs after the previous 6 letters are intercepted, 1 can be changed to 2, depending on


This analogy

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.