Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Xcopy asks whether it is a directory or a file.

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

When I want to copy the catalog today, I am always asked this question, and I find that it is the question of whether to add a slash.

Used to using linux and then using the dos command found that there is still a big difference, from the understanding of the dos command is not as intuitive as linux ah.

For / f "usebackq delims=="% I in (d:\ need_to_be_copied.txt) do xcopy / e "e:\ completed\% I"d:\ files\% I\"

In this command, the text d:\ need_to_be_copied.txt is full of directory names, one for each line. We need to find the directories listed in the txt text from the e:\ completed directory and copy them to d:\ files. If you don't write a slash at the end of the command% I, you will ask, and if you write it, you will copy it directly.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report