In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "what are the methods of writing all the file names of the current disk to the text file on the CMD command line". In the daily operation, I believe that many people have doubts about the method of writing all the file names of the current disk to the text file on the CMD command line. The editor consulted all kinds of materials and sorted out simple and useful operation methods. I hope it will be helpful to answer the question of "what is the method of writing all the file names on the current disk to a text file on the CMD command line?" Next, please follow the editor to study!
Is there a way to get all the file names on a disk at once? In addition to batch access to file names, of course, windows itself can also be achieved! Here's how to write all the filenames on disk to text using the CMD command line.
Dir FRV / > d:/1.txt / / write the directory under f disk to d:/1.txt
Dir DVR / > > d:/1.txt / / append the directory under the d disk to the d:/1.txt
Dir / s dvv / music > d:/1.txt / / set up all the information of the directory and subdirectory files of dvv / music in d:/1.txt
Dir / s / b dvv / music > d:/1.txt / / build all the directory and subdirectory files of dvv / music in d:/1.txt with concise information
Tree / f dvv / > d:/1.txt / / create the files and folders in d:/1.txt in the form of a tree.
Dir > > 1.txt / / creates and appends the current directory to the 1.txt of the current directory.
Creating a file
> > create (if there is no file) or append (if one already exists) to the file.
If we get the list of contents in the current directory, we usually use the following methods:
The code is as follows:
Div / b > dxy.txt
The effect is shown in the following figure:
At this point, on the "CMD command line to write all the file names of the current disk to the text file what are the methods," the study is over, I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.