CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Windows – DIR command – How to change the display format of files and folder?

Mostly used command in Windows Operating System at command prompt is DIR command. Sometimes it is required to change the display format depends on the need and readability. Through this Article, we will discuss some of the useful formats the DIR command displays the files and folders.

DIR command provides different switches (aka parameters) to change the display format.

Bare format

By using “/b” switch with DIR command you can display the files and folders without any other additional information (just bare format). You will not see any summary or header information with this format.

C:\> dir /b

Wide list format

With DIR command the files and folders will be displayed in wide list format with the switch “/w”; where directories are displayed in braces “[]” and file names will be displayed in free form. No file size, time stamp details will be displayed in this format.

C:\> dir /w

New long list format

DIR command use this format by default. It displays the file names in far right.

C:\> dir /n

Display thousand separator in file size

By default thousand separator will be displayed in file sizes when we use DIR command. It is similar to the below command:

C:\> dir /c

You can remove the thousand separator by applying the symbol “-” to the parameter. That means, to stop displaying the thousand separator, you can use the DIR command like below:

C:\> dir /-c

Display results in lowercase

You can use “/l” switch to display the files and folders in lowercase.

C:\> dir /l

Be on learning path always!

// Malin

Windows – DIR command – How to change the display format of files and folder?

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top