How To Print A List Of All Files In A Windows Directory

preview_player
Показать описание
How To Print A List Of All Files In A Windows Directory

In this video I’m going to mention a way to generate a directory listing: using the command line.

If your needs are very simple, the command line method is the easiest and doesn’t require any additional tools.

The commands are :
Рекомендации по теме
Комментарии
Автор

very helpful thanks. i forget that some of the old DOS commands are still available underneath WIndows. Many thanks - clear and concise

kurtgoodwin
Автор

Compliments of a clear and concise explanation.

VBugatti
Автор

Wonderful tutorial! I am trying to format my hard drive, so having a concise list of all my files and its directories is a great help.

emanuelcastro
Автор

Thank you for the detailed explanations and speaking slowly!

deverypierce
Автор

Wonderful. Good teaching. How about the following? I often am interested in getting the listing of files in all the subdirectories whose names match a name string. For example, there are various subdirectories parent directories. These subdirectories in turn have subdirectories, one of which repeats in name. The name of these repeating subdirectories is “ InputFile”. So, I like to get a listing of all the files found in all the subdirectories named “InputFile” along with the files’s directory path. Any way to do that?

SirOreo
Автор

Are there any other switches that can be used in the string for other sorting purposes, or other things?

ffmedic
Автор

Hi! This looks great. I can run "cd" and "dir" okay by themselves. But as soon as I try anything else I get error messages.
"dir : Cannot find path 'C:\b' because it does not exist..."
"dir : Cannot find path 'C:\[directory of subfolder]\File List.txt' because it does not exist."
Any time a folder has a space, I put the whole directory in "double quotes" .
Any ideas on what went wrong?
I am running Powershell as Admin on a Windows 10 Pro

castillelarkin
Автор

How do you open the Command line to type cmd? You lost me there

garylillich