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

The 1.2.1bat script command DIR displays disk directories and redirect symbol wildcards

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Clerk, network management skills: Windows command line bat/cmd batch script writing application file management application

The 2.1.2.1bat script command DIR displays disk directories and redirect symbol wildcards

Course address: http://edu.51cto.com/course/11343.html

Command:

DIR > *?

-- [I wish I knew there were many optional parameters]

DIR = directory (directory folder)

DIR [drive:] [path] [filename] [/ A [[:] attributes]] [/ B] [/ C] [/ D] [/ L] [/ N]

[/ O [[:] sortorder]] [/ P] [/ Q] [/ R] [/ S] [/ T [[:] timefield]] [/ W] [/ X] [/ 4]

[drive:] [path] [filename] specifies the drives, directories, and / or files to list.

/ A displays the file with the specified properties.

Attribute D directory R read-only file

H hide files A files ready to be archived

S system file I no content index file

L parse point-prefix for "no"

/ B uses an empty format (no title information or summary).

/ C displays the thousand delimiter in the file size. This is the default value. Use /-C to disable the delimiter display.

/ D is the same as the wide type, but the files are listed by column.

/ L is in lowercase.

/ N the new long list format, with the file name on the far right.

/ O lists files in classified order.

Sort order N by name (alphabetical order) S by size (from small to large)

E by extension (alphabetical order) D by date / time (from first to last)

Group G directory priority-prefix for reversing order

/ P pauses after each information screen.

/ Q displays the file owner.

/ R displays the alternate data stream of the file.

/ S displays files in the specified directory and all subdirectories.

/ T controls the time character fields displayed or used for classification.

Time period C creation time

A Last visit time

W time of last write

/ W is in a wide list format.

/ X is displayed as a short name generated by a file name other than 8.3. The format is / N format

The short name is inserted before the long name. If there is no short name, in its position

Show blank.

/ 4 display the year in four digits

Dir / b / s displays the absolute path of all files under the current path

The redirect operator > will overwrite the original content > > append content

Wildcard *?

* .txt

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