• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Home
  • About Techie She
  • Contact
  • Privacy Policy

Techie She

  • Blogging Stuff
  • Freebies & Deals
  • Tips & Tutorials
  • Blog Themes & Designs
  • Techie Matters
You are here: Home / Techie Matters / How to List of All Files in a Directory (Windows)

How to List of All Files in a Directory (Windows)

list-files-windows-directoryIf you want a list of all your files in a certain directory in Windows, follow the following steps:

  1. Click the Start Button and type Command Prompt.
  2. Open Command Prompt with administrator privileges. Either right-click on the icon and choose “Run as administrator” or click on “Run as administrator” on the search result options that will show up.
  3. If needed, change the drive by typing the drive letter followed by a colon (for example, E:) then press enter. For root directory, use cd\ instead.
  4. Create a directory by typing tree /f /a > and filename of listing. For example, tree /f /a > myList.txt if you want your txt file output to be in the same drive. Otherwise, specify the exact location like this: tree /f /a > C:\foldername\myList.txt.

Explanation of the commands:

TREE – Displays directory paths.

/A – Specifies that alternative characters (plus signs, hyphens, and vertical bars) be used to draw the tree diagram so that it can be printed by printers that don`t support the line-drawing and box-drawing characters

/F – Displays the names of the files found within each directory listed.

Depending on the quantity of files you have in your drive, it may take a while for the whole process to finish. The cursor will keep blinking while the process is ongoing. You can view your txt file now to see the list of all your files in that directory.

Related posts:

Default ThumbnailBackup Your Files letterWhy You Need to Build an Email List Now Default ThumbnailDoes Your WP Theme Have Malicious Codes? Default Thumbnail5 Methods to Keep Your Online Business Files Organized

Techie Matters, Tips & Tutorials

Primary Sidebar

The Latest from the Blog

power-transformer-electrical-workers

Innovative Trends in Transformer Technology

temperature sensor checking transformer

The Versatility of Temperature Sensors in Everyday Applications

black screen with active cursor

Black Screen With an Active Cursor After a Problematic Windows Update

seo-backlinks-analysis-content-ranking

The Art of Building Quality Backlinks for SEO

Topics Discussed

  • Blog Themes & Designs (41)
  • Blogging Stuff (53)
  • Business & Marketing (87)
  • Contests and Giveaways (71)
  • Features (68)
  • Freebies & Deals (45)
  • Techie Matters (187)
  • Tips & Tutorials (35)
  • Uncategorized (5)

Archives Link

Copyright © 2025 Techie She on the Brunch Pro Theme