Windows Scripting Forums

Full Version: Using Command Prompt to View File Extensions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I use command prompt to view the file extensions? Do I type "list files" or do I have to view a certain directory that the file is located? A basic description is fine. Obviously you don't which files I want to view. I know I learned how once but I don't remember. I have Windows XP.
You can navigate to a specific directory using the cd command.

cd "C:\some directory"

Then, you can list files using the dir command.

dir *.*

If that is hard to view, try "wide" view.

dir /w *.*

You can also list subdirectories using the /s switch. For instance, any in "some directory" or in any folder under it:

dir /w /s "C:\some directory\*.*"
Reference URL's