Wednesday, January 15, 2025
HomeTechHow to list files in windows using command prompt (cmd)

How to list files in windows using command prompt (cmd)

To list files in Windows using the Command Prompt (cmd), use the dir command. Open Command Prompt and navigate to the desired directory using the cd command, then type:

bash
dir

This will display a list of files and subdirectories in the current folder. To view specific details, use options like:

  • /p: Pause after each screen of output.
  • /w: Display in wide format.
See also  Insertion of Sort Algorithm

For example:

bash
dir /p

To list files in a specific directory:

bash
dir C:\path\to\directory

For only files of a certain type (e.g., .txt), use:

bash
dir *.txt
RELATED ARTICLES
0 0 votes
Article Rating

Leave a Reply

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
- Advertisment -

Most Popular

Recent Comments

0
Would love your thoughts, please comment.x
()
x