batch-file Changing Directories and Listing their Contents How to show all folders and in files in a directory

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

Usage to list all folders and files in the current directory: dir

A target directory can also be specified: dir C:\TargetPath

When specifying a path with spaces, it must be surrounded by quotes: dir "C:\Path With Spaces"



Got any batch-file Question?