Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

dir2csv

A simple Python script that converts the text output of a Windows dir /s command into a CSV file.
Each row in the CSV contains:

  • FullPath: the full path and filename (with extension)
  • SizeBytes: the file size in bytes

This makes it easy to analyze directory listings, import them into Excel, or process them further.


✨ Features

  • Parses standard dir /s output text files
  • Extracts file paths and sizes
  • Generates a CSV file with the same base name as the input .txt
  • Processes all .txt files in the current folder automatically

πŸ“‚ Example Workflow

  1. Run dir /s in a Windows command prompt and redirect output to a text file:

    dir /s > myfiles.txt

About

A simple python script that converts a text file containing a directory listing into a CSV

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /