cleverly resolves an issue where the Windows Copy command does not accept too long paths

Source: Internet
Author: User

Today encountered a write in the bat file to perform Xcopy success, but some of the file lost problems, view the log, found a lot of hints:

"The system can not find the path specified."

But to see under the specified path, the file does exist, and in the same folder, one file is successfully copied and the other one does not exist.

Online search, mostly referred to the problem of too long file name.

File names are supported by default of 258 characters.

Finally run to ask whether it is a permission problem caused, in fact, is not likely to find them to ask whether there is no solution, the online program is, CD to the specified directory, shortened xcopy write parameter file path. But virtual network disk Ah, how to go into the CD Ah, impossible Ah!

It gives a wonderful solution to share here:

In the computer directory, you can see the MAP network drive. Just use it!

How to configure, very simple, select a drive letter, paste the actual physical path. OK, the new drive letter is generated.

cleverly resolves an issue where the Windows Copy command does not accept too long paths

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.